[Qt-interest] setSizePolicy has no effect in subclass of QDialog
Stephen Collyer
scollyer at netspinner.co.uk
Mon Jun 1 18:02:52 CEST 2009
I have a subclass of QDialog:
class EditProjectDlg : public QDialog,
public Ui::EditProjectDialog
{
Q_OBJECT
...
}
Prior to displaying this via exec(), I set the size policy:
setMinimumSize(sizeHint());
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
to prevent it from being resized vertically.
When the dialog is displayed, I can resize it freely both vertically
and horizontally. Can anyone see what I'm doing wrong ?
--
Stephen Collyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090601/4b1f1a3c/attachment.html
More information about the Qt-interest-old
mailing list