PDA

View Full Version : qt designer 4.4.1 dialog properties



jjbabu
1st October 2008, 09:35
Hi,

using the qt designer,i am developing the individual dialogs,my problem is i am not getting maximized and minimized buttons at right corner of the dialog header.
---How can i get that options visible for the Dialog?

one more thing,As per my application requirement,i have to store the GUI information on the file.that file should be saved on the hard disk as per user requested directory.how can i implement this?is there any widget to show the paths of hard disk directories.

please give me any suggestions on this both issues.

Thanking you.

spirit
1st October 2008, 09:55
Hi,

using the qt designer,i am developing the individual dialogs,my problem is i am not getting maximized and minimized buttons at right corner of the dialog header.
---How can i get that options visible for the Dialog?


you need to use


void QWidget::setWindowFlags ( Qt::WindowFlags type )

or pass flags in ctor of yours dialog.
e.g. in you case you should do something like this


...
setWindowFlags(windowFlags() | Qt::WindowMinMaxButtonsHint);
...





one more thing,As per my application requirement,i have to store the GUI information on the file.that file should be saved on the hard disk as per user requested directory.how can i implement this?is there any widget to show the paths of hard disk directories.

please give me any suggestions on this both issues.

Thanking you.
see, QSettings