Home > Mobile >  Novice QT problem for help
Novice QT problem for help

Time:09-16

Why would an error here, is there any who teach the

CodePudding user response:

What is MainWindow, QMainWindow

CodePudding user response:

Parameter type, take a look at your huanying if this class inherits QMainWindow

CodePudding user response:

Appeared in front of the problem is solved, and then can't exec mainwindow calls inside, that should use what ah, QDialog can use the exec

CodePudding user response:

Mainwindow. The show ();

CodePudding user response:

reference weixin_44353608 reply: 3/f
in front of the problem is solved, and then can't appeared the exec mainwindow calls inside, that should use what ah, QDialog can use the exec


MainWindow * MainWindow=new MainWindow.
Mainwindow - & gt; show();

Increase in the MainWindow constructor: setAttribute (Qt: : WA_DeleteOnClose);

CodePudding user response:

reference 5 floor of Yi reply:
Quote: refer to the third floor weixin_44353608 response:

Appeared in front of the problem is solved, and then can't exec mainwindow calls inside, that should use what ah, QDialog can use the exec


MainWindow * MainWindow=new MainWindow.
Mainwindow - & gt; show();
Increase in the MainWindow constructor: setAttribute (Qt: : WA_DeleteOnClose);
my third window is opened, but has been covered by the window
  •  Tags:  
  • Qt
  • Related