mickey
11th March 2006, 12:25
Hi I'd like to insert two button in a Hlayout and then try the way to enlarge them to fit entire QWidget where they are...
QPushButton *canc1 = new QPushButton(widget);
QPushButton *canc2 = new QPushButton(widget);
canc1->setText("ok");
canc2->setText("clear");
l = new QHBoxLayout(widget);
l->addWidget(canc1);
l->addWidget(canc2);
In attach the result of this above; Can I enlarge them in vertical using Vlayout? (whithout use setGeometry on button)
QPushButton *canc1 = new QPushButton(widget);
QPushButton *canc2 = new QPushButton(widget);
canc1->setText("ok");
canc2->setText("clear");
l = new QHBoxLayout(widget);
l->addWidget(canc1);
l->addWidget(canc2);
In attach the result of this above; Can I enlarge them in vertical using Vlayout? (whithout use setGeometry on button)