PDA

View Full Version : problem with alignment



Seema Rao
26th April 2006, 13:45
how to create/align two buttons attached, like below

|----------------|--------------------|
| one | two |
|----------------|--------------------|


Thanks in advance,

Seema Rao

jpn
26th April 2006, 13:52
Did you even try reading the docs (http://doc.trolltech.com/4.1/layout.html) or the links posted in your previous thread (http://www.qtcentre.org/forum/showthread.php?t=1966)??



QHBoxLayout* layout = new QHBoxLayout;
layout->addWidget(button1);
layout->addWidget(button2);
layout->addStretch();