Hey
New issue... the layout is a LayoutWidget, which doesn't work with
QWidget->setLayout(). But I've found a workaround :
MyWidget::MyWidget (QWidget* par) {
setMinimumSize(size()); // current size is the min size
}
void MyWidget::resizeEvent (QResizeEvent* e) {
layoutWidget->resize(this->size()); // wrap layout on the widget's borders
e->accept();
}
Fortunately that works perfectly without any flickering effect.
(I'm still hoping for a best solution ^^)
Thanks
Raphaël
2006/10/12, apaku@xxxxxx <apaku@xxxxxx>:
Raphaël Kolm wrote:
> Hello
>
> How can I set a widget's layout width Qt Designer, in order to make my
> dialog resizable ?
>
> I mean, how can I setup this :
>
> QDialog* dlg = new QDialog(); // dialog being edited
> QHBoxLayout* layout = new QHBoxLayout(); // layout
>
> dlg->setLayout(layout); // what property do i have to set in designer ?
Click on the widget, if it has subwidgets click on an area where there is no
subwidget and then choose any of the layouting methods from the toolbar.
Andreas
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
|