qtgui

Is there a simple way to restore widget sizes in Qt?

I'm looking for a way to preserve the size of windows in a Qt app. I've seen that there is the possibility of using the following method for every widget: saveGeometry() But really, I don't find this a satisfactioning method. Is there something like setAutosaveGeometry(True)? I'm especially looking for a way to store the widths of t...

How to run GUI application from userdefined boot time daemon server

Dear All, I am writing one simple server daemon and running with /etc/init.d/server its running properly but when i want to run one simple QT GUI with system() function , its not able to run it and returning 256 as return code . if same daemon i m running from terminal then its working properly and also system() function is getting succ...

How to create artificial nodes in QAbstractItemModel for QTreeView

Hi, my question is about Qt and its QAbstractItemModel. I have a map of strings and doubles (std::map<stringclass, double>) which I would like to present in a Qt widget. While I could use QTableView for that, I would like to exploit the fact that the keys of the map are of form "abc.def.ghi" where there can be multiple strings that c...

Qt: Detect Double-Click with Modkey (Shift, CTRL, etc.)

How can I detect whether a double click on a QWidget (QStatusBar, in my case) occured while a modifier key was held down? I can overload void QWidget::mouseDoubleClickEvent ( QMouseEvent * event ) to get the double click, but how can I sure whether the widget receives the key events when it might not have the focus? ...

QWizardPages to keep their own minimum sizes

I'm working with Qt (version 4.6 on Windows XP 32-bit and compiling in Qt Creator 2.0.0) and trying to get a QWizard to work out. First Problem: I have three QWizardPages in my QWizard so far. Each page has a QVBoxLayout applied as it's layout. My first page has very small content (just a three line QLabel) but for some reason there is...