[Qt-interest] Multi-head API?

R. Reucher rene.reucher at batcom-it.net
Tue Oct 20 10:34:27 CEST 2009


On Tue, 20 Oct 2009 09:51:52 +0200, Murray Cumming wrote:
> But how can I move a window to a screen, or say that it should appear
> there when it is shown? The class documentation says "Applications can
> use this classs ... to place child widgets on one screen."
> 
> I don't see anything suitable in QMainWindow, QWidget, or QApplication
> either.
I haven't tried this myself, but it may be possible to move a widget to a 
specific screen by making it a child of the screen's desktop widget. 
There's this method in QDesktopWidget to determine a screen's desktop-
widget:

QWidget *QDesktopWidget::screen(int screen = -1)

HTH, René
-- 
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/

"I think sex is better than logic, but I can't prove it."



More information about the Qt-interest-old mailing list