QT/Trolltech multiple monitors

X

xaker00

I am attempting to write some code that will display a window on a
specific monitor on a multi-monitor system. I cannot find a
straightforward way of placing a window on a secondary monitor on my
windows machine. The code works well with FreeBSD, but not with a
windows virtual-desktop. Is there a way to not have an extended desktop
on windows, but have separate screens instead (like X11)? I am also
running into the same problem on OSX. Is there a trick to make this
work?


QWidget * QDesktopWidget::screen ( int screen = -1 )
Returns a widget that represents the screen with index screen.

This does not work with virtual desktops, I always get screen 1. Any
workarounds?
 
M

Mark P

I am attempting to write some code that will display a window on a
specific monitor on a multi-monitor system. I cannot find a
straightforward way of placing a window on a secondary monitor on my
windows machine. The code works well with FreeBSD, but not with a
windows virtual-desktop. Is there a way to not have an extended desktop
on windows, but have separate screens instead (like X11)? I am also
running into the same problem on OSX. Is there a trick to make this
work?


QWidget * QDesktopWidget::screen ( int screen = -1 )
Returns a widget that represents the screen with index screen.

This does not work with virtual desktops, I always get screen 1. Any
workarounds?

Try a Qt forum. This newsgroup is for the standard C++ language.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,040
Latest member
papereejit

Latest Threads

Top