PDA

View Full Version : how to get the screen size in qt2



pencilren
21st June 2007, 03:05
I want to change contoller size du to the screen size,
what should I do ? how I can get the screen size ?

jacek
21st June 2007, 16:33
Try QApplication::desktop() (http://doc.trolltech.com/2.3/qapplication.html#d8ed8c).

pencilren
22nd June 2007, 03:47
yes I can get the size by using QApplication::destop()
thanks