After the program is running, there will be a short white box, and then write control, what method can remove this brief white box? (mainly interface design visual negative)
CodePudding user response:
The
refer to the original poster qq_45802809 response: after the program is running, there will be a short white box, and then write control, what method can get rid of this brief white box? (mainly interface design visual negative) In the UI, create a space, the problem is especially obvious CodePudding user response:
Scenario is because you haven't set the parent of a control, direct call its show function, you need to set the parent before the show, a unified call always show window CodePudding user response:
refer to the second floor Italink response: the case because, you haven't set the parent of a control, direct call its show function, you need to set the parent before the show, unified call window always show Is not the problem, I create a pushbutton button in the UI interface, and then run the program, there will be a short program leisurely white box, and then display button, if I create button in the constructor, then there is no this kind of circumstance, why? CodePudding user response:
Is the problem, before you pushbbuton display is not set the parent is called directly show display, appears white box, display after you set the parent of pushbutton, if again call the parent window of the show, the parent window will show to show all child controls, so you see a white box disappear CodePudding user response:
Is not the case, the code is a show () call, CodePudding user response:
Is not the case, the code is a show () call, CodePudding user response:
Italink reference 4 floor response: is the question, before you pushbbuton display is not set the parent is called directly show show that appears white box, display after you set the parent of pushbutton, if again call the parent window of the show, the parent window will show all child controls to display, so you see a white box disappear Is not the case, the code is a show () call,