Home > Mobile >  Flash back on qt show display window
Flash back on qt show display window

Time:11-30



A show is very ordinary, but flash back to window appears, it what problem, how to solve

CodePudding user response:

Don't know where this code is invoked, you feel is in a function, function performs the saa send released on the stack, so you can be the new show again

CodePudding user response:

The positive solution on the second floor

CodePudding user response:

Feel like a lack of application message loop QApplication: : exec ()

CodePudding user response:

Your mainview to define global, then new to show

CodePudding user response:

There should be no new object in the function, not new, end of the function object interface was released

CodePudding user response:

You forgot to add mainview. The exec (); Establish eventloop

CodePudding user response:

No event loop, withdrew, very normal, because the destructor,


Window. The exec (), such open time cycle
  •  Tags:  
  • Qt
  • Related