Jump to content

5 posts in this topic

Posted

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.

Share this post


Link to post
Share on other sites

Posted

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

Share this post


Link to post
Share on other sites

Posted

[quote name='mute~' timestamp='1327671038' post='594612818']
Have the 'launch position' set to an offset of the parent window. (Note: launch position may be called something else in English)
[/quote]

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

Share this post


Link to post
Share on other sites

Posted

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.

Share this post


Link to post
Share on other sites

Posted

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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.