• 0

Problems with multiple monitors and positioning


Question

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.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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?

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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?

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.