How I can do following: I’d like show my main window on start on the center screen.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll need to
setGeometryon your top-level widget before you show it. The easiest way I can think of to work out what geometry you need is viaQDesktopWidget. Try the example below (create aQPushButton, press it while moving the widget around various screens) and you’ll see what I mean:Should be reasonably simple from there to come up with a generic version that works out a user’s center screen (if it exists).