[Qt-interest] Fw: Maximize on current Screen
Gilles Valette
gilles.valette at univ-reims.fr
Wed Feb 3 06:10:36 CET 2010
Message de Suresh Kannan A <a_suresh_kannan at yahoo.com>:
> My system is with multiple monitors(screens)
> and all monitors are same configuration.
> When I maximize any window,
> the window is always maximized on the first
> screen. I want the window to be maximized
> on the current screen. I have enabled
> Xinerama. How do I resolve this?
>
Hi,
Look at the QDesktopWidget Class Reference, there are methods which
give information on the number of screens and location of a particular
widget (screenCount, screenNumber). You can then use screenGeometry,
move and setFullScreen to get a maximized window on a secondary screen.
Hope this helps,
Gilles
More information about the Qt-interest-old
mailing list