Jump to content



Photo

Problems with multiple monitors and positioning

multiple monitor

  • Please log in to reply
4 replies to this topic

#1 starbearer

starbearer

    Neowinian

  • Joined: 22-June 06

Posted 27 January 2012 - 10:01

I have a program which launches several windows when triggered.

In a dual monitor system, if I drag this main window over to a second monitor( in projector mode), and try and lunch any window from there, the launched window always comes in the main screen.

How do I enforce that the widget/wondow launched from another one comes in the same screen as its parent?

Please help me. Thanks. Application is written in C++ and Qt.


#2 Kami-

Kami-

    ♫ d(-_-)b ♫

  • Tech Issues Solved: 2
  • Joined: 28-July 08
  • Location: SandBox

Posted 27 January 2012 - 13:30

Have the 'launch position' set to an offset of the parent window. (Note: launch position may be called something else in English)

#3 OP starbearer

starbearer

    Neowinian

  • Joined: 22-June 06

Posted 30 January 2012 - 02:16

Have the 'launch position' set to an offset of the parent window. (Note: launch position may be called something else in English)


Ah, I didn't get you. Could you be a little bit more clear, please?

#4 OP starbearer

starbearer

    Neowinian

  • Joined: 22-June 06

Posted 30 January 2012 - 05:31

I have an idea to use primaryScreen and setScreen, for this, but I'm not sure whether they'd work.
If they would ,could anyone tell me how to use those? The documentation on Qt forums is inadequate.

#5 OP starbearer

starbearer

    Neowinian

  • Joined: 22-June 06

Posted 02 February 2012 - 06:09

The widget I'm talking about now does not have a parent. I've removed that.
I can get the Traget screen ID base on where the mouse pointer is pointing.

Once I do that, Is there any way to force the window to launch in that particular target screen?