PDA

View Full Version : Application Resizing on Display resolution change



augusbas
26th April 2010, 09:25
Hello all,

I have done a QT application with 320x240 as my application width and height with reference to my display. Now the display has changed 480x272 as resolution. How do i re-size my application automatically whenever there is a change.

Any command line parameter to re-size or something to do with the change in code.

Guide me.

Regards,
Augus

borisbn
26th April 2010, 13:12
connect to resized (http://doc.qt.nokia.com/4.6/qdesktopwidget.html#resized) signal of QDesktopWidget (http://doc.qt.nokia.com/4.6/qdesktopwidget.html). Obtain a pointer to QDesktopWidget object from QApplication::desktop() (http://doc.qt.nokia.com/4.6/qapplication.html#desktop) function