PDA

View Full Version : push button on specific places of man widget



sanjeet
2nd July 2011, 08:15
Hi,

I have to put two push button on bottom-left and bottom-right corner of main widget( mean any specific place on main widget).

I am not using designer, i am doing hard-code and also i wouldn't like to use layout.

For this, in constructor of main widget i am creating push buttons and using setGeometry() call. but it didn't works, whenever i am using setGeometry() push button even not displaying on main widget. But same thing i am doing with QLabel it's working properly, only problem with QPushButton. Why ...?

How can i set desired geometry of push button on main widget without using designer and any layout... ?

Thanks,

sanjeet
4th July 2011, 05:37
Hi,
I have sorted out this problem...