Hi all
I have a small problem with the stretch parameter in a WHBoxLayout that
is not working in the example below.
The height of the first widget are the height of his content.
Any idea of what is missing ?
WContainerWidget* cont2 = 0;
m_wcContent = new WContainerWidget();
m_wcContent->addWidget(new WText("hello"));
cont2 = new WContainerWidget();
cont2->setContentAlignment(AlignRight);
WPushButton* bOk = new WPushButton("Ok");
bOk->clicked.connect(SLOT(this, gdWDialog::onAccepted));
cont2->addWidget(bOk);
WPushButton* bCancel = new WPushButton("Cancel");
bCancel->clicked.connect(SLOT(this, gdWDialog::onRejected));
cont2->addWidget(bCancel);
WVBoxLayout* vbox = new WVBoxLayout();
vbox->addWidget(m_wcContent, 1); // Does not working
vbox->addWidget(cont2);
contents()->setLayout(vbox);
Regards
Guy
------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest