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 againCodePudding user response:
The positive solution on the second floorCodePudding user response:
Feel like a lack of application message loop QApplication: : exec ()CodePudding user response:
Your mainview to define global, then new to showCodePudding user response:
There should be no new object in the function, not new, end of the function object interface was releasedCodePudding user response:
You forgot to add mainview. The exec (); Establish eventloopCodePudding user response:
No event loop, withdrew, very normal, because the destructor,Window. The exec (), such open time cycle