Let's consider we have QWidget that contains QTableWidget (only). So we want to resize the table by resizing the widget, and we dont want to have an indet between the QWidget border and cells of the table. What kind of property is making posible for QTableWidget to be aligned with the borders of it parent widget?
Thanks.
...
Is there a way to get all running threads in Qt application from QApplication object?
...
hi! all,
I was tryin to convert a QSting to char* type but by following methods,but those does'nt seem to work.
// QLineEdit *line=new QLineEdit();{just to describe what is line here}
QString temp=line->text();
char *str=(char *)malloc(10);
QByteArray ba=temp.toLatin1();
strcpy(str,ba.data());
can you elobrate the possible ...
Hello. I have a QString. I need to create a copy of this QString. In Delphi this function copy
function Copy ( Source : string; StartChar, Count : Integer ) : string;
I need the same in Qt.
Thank you.
...
I'm using Qwt for some scientific graphing, and I'm working with some fairly small numbers, the smallest being around 1.0e-22.
I'm trying to call
setAxisScale(xaxis, xmin, xmax) //xmin = 0, xmax = 2.0e-10
But when I do, the application locks up. I haven't found anything in the documentation that refers to a minimum value. Xmin and xm...
Hi
we are developing a skinned application, and under vista/windows 7, on some machines, skinned applications sometimes loses their skin. here's an example for the problem, and here's how the application looks when it's good.
this happens to us whether we develop with native Win32 API or in QT. It happens spontanously, with no event th...
I stumbled about a method which seems to be present in all DataObjects like QList, QQueue, QHash...
I even investigated so far i can see the source code of it, which is
inline void setSharable(bool sharable) { if (!sharable) detach(); d->sharable = sharable; }
in qlist.h (lines 117)
but what effect does it have on the QList, QQueue,...
Here is the parts of code (Mw - main window, Ed - edit dialog, Tv - table view):
Mw.mapper = QDataWidgetMapper(Mw)
Mw.mapper.setSubmitPolicy(QDataWidgetMapper.ManualSubmit)
Mw.mapper.setItemDelegate( QSqlRelationalDelegate(Mw.mapper) )
Mw.mapper.setModel(Table.Model)
# Id - first invisible key column
Mw.mapper.addMapping(Ed.leName, Name...
I tried to compile Qt+Webkit statically with MS VS 2008 and this worked.
C:\Qt\4.6.2>configure -release -static -opensource -no-fast -no-exceptions -no-accessibility -no-rtti -no-stl -no-opengl -no-openvg -no-incredibuild-xge -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde -no-style-windowsce -no-style-windowsmobi...
Consider there is a QTablWidget and a QTextEdit. Both of them are in a horisontal QSplitte. Let the QTable widget has 2 columns.
The problem is to resize the table columns' width as you do resize operation by moving the splitter with mouse. Are there any options to may colums to be resized synchornosly with the table?
Thanks.
...
Let's say I'm a Qt newbie.
I want a good Qt library for displaying simple graphs. I've found the quanava library. But there is a problem. When I compiled a basic example it looks like graph edges are not painted properly when moving nodes. I don't have any idea where is a bug but this code seems to be rather simple. I think this is a pro...
Hi,
I'm trying to use QtXmlQuery to extract some data from XML. I'd like to put this into a QStringList. I try the following:
QByteArray in = "this is where my xml lives";
QBuffer received;
received.setData(in);
received.open(QIODevice::ReadOnly);
QXmlQuery query;
query.bindVariable("data", &received);
query.setQuery(NAMESPACE //conta...
I'm working on a project with QT and am trying to draw icons from a database.
I have auxiliary information in the table that I would like to display if the user chooses to see it (i.e. the x,y of the icon and some other options from database).
I am debating on would it be better to go through and just redraw all the icons with this in...
Hi,
I just discovered interesting behavior of queued connection in Qt 4.6:
First queued connection is made:
connect(someSender, SIGNAL(completed()), this, SLOT(handleCompletion()), Qt::QueuedConnection)
Then someSender sends the signal:
emit completed()
Before receiving signal (as it is in queue), I disconnect from the signal:
d...
I have two widgets that can be checked, and a numeric entry field that should contain a value greater than zero. Whenever both widgets have been checked, and the numeric entry field contains a value greater than zero, a button should be enabled. I am struggling with defining a proper state machine for this situation. So far I have the fo...
Once I have programmed GUI with Java and have used Form Layouts. Form layout (if I am not mistaken that is from SWT library) made possible to give right, left, top and bottom adges of any GUI element (widget) with respect to other widgets in the same widget (parent widget) or with respect to the adges of parent widget. So it was possible...
I'd like to monitor activity on browsers, creating a list with URLaddress, browser number (if have many opened at the same time) and tab number (if there are more than one tab opened).
How to do it with Qt 4.6?
...
I want to copy a directory from one drive to another drive. My selected directory contains many sub directories and files.
How can I implement the same using Qt?
...
hi,
i want to replace temp.replace
(QString("/"), QString("\"));
Here i am getting error
error C2001: newline in constant
error C2275: 'QString' : illegal use of this type as an expression
How can i replace "/" with "\"
...
In Qt I'm trying to set up my own QWidget so everything should work good due to memory management and other things. But I can't seem to get it all right with pointers, heap and stack. I have my widget MyWidget that have a QList with some objects. I can't figure out how to set up everything right.
You can see my code below and I have som...