PDA

View Full Version : Screen resolution



sabeesh
7th September 2007, 09:16
Hi,
I create a program in Qt4.2 and it is working in Windows and Linux. My problem is that, I want to resize the screen depending on the screen resolution.
ie, when i add or less the resolution of my computer, depending on that the size of the screen of my QT application must me change.
how can I do that?
Please help me........

jpn
7th September 2007, 09:53
See QDesktopWidget.

sabeesh
7th September 2007, 10:48
Hi,
Can you give an example for how we use it?

wysota
7th September 2007, 10:55
Take a look at its docs, especially the availableGeometry() member.

momesana
7th September 2007, 18:00
Create a slot in your application that will handle the resize of your application window. Then in the constructor of your app initialize a QDesktopWidget object and connect its resized signal to your slot.