Jump to content
  • 0
Guest Jacob_R

Prevent App from flashing when activated

Question

Guest Jacob_R

When the app is first activated, it flashes on the screen. 

What can I do to prevent this? I am currently developing apps with QT Creator.

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 1

Add the following line to your main.cpp.

 

MainWindow w;

w.move(-2000,-2000);

w.show();

 

This will ensure that the window is moved outside of the screen area before it is captured by the app framework.

  • Upvote 1

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

×