CodePudding user response:
Copy the code # include & lt; QApplication> #includeCodePudding user response:
Thank you very much for your reply, I just tried, but why can't show in my project so out figure? I am built a MainWindow project, based on the main interface to add a TabWidget controls, in the first TAB to add the QTreeView and QGrapgicsView, want to display in the QGrapgicsView loading picture, why notCodePudding user response:
In my project the main function of the code in also don't show, but to create a new line, I don't know to is whyCodePudding user response:
Thank you all for your attention, problem solving, the scene as a global variable or class member variables, don't set it to the local variables in the function, is set to a local variable variable is the end of the word function, so can't display images,CodePudding user response:
The above is correct,,,,