PDA

View Full Version : Button position



Mrdata
26th February 2007, 16:46
I've some buttons (QPushButton) which i would like to put in specific positions inside
a layout. I tried using things like button->move ( int x, int y ) or button->setGeometry( x, y, ...) , but they didn't worked. Thanks in advance.

jpn
26th February 2007, 16:58
The layout manager handles geometries of it's widgets. You cannot (and there should be no need to) move/resize them by hand. Here's some further explanation of how layouts work: Layout Classes (http://doc.trolltech.com/4.2/layout.html).