PDA

View Full Version : How to setting Geometry property for a non-parent's QWidget?



mecland
26th May 2010, 13:18
Hi, all
I want setting Geometry property for a non-parent QWidget by setGeometry function, but it's fullscreen always.
why?
thanks!
Best regards


Mecland

tbscope
26th May 2010, 14:38
I didn't understand the question.

Do you mean this:



QWidget *myWidget = new QWidget;
myWidget->setGeometry(0,0,100,100);


And this results in a widget that fills the screen?

mecland
27th May 2010, 01:55
thank for your repsone.
yes, same to that's code