c++ - How to pass reference to slot in QT Creator -


I have two forms in the project: mainwindow.ui and mydialog.ui < / Em>. Each has .hpp and cpp files. In the mainwindow.cpp file, there is an QList object.
I press the button on the main window form and model mydialog form appears. I then press the button on the mydialog form and on_btnCreate_clicked () run.

What is the object in QList object in the on_btnCreate_clicked () slot

?

If so, how?

zero main window :: on_btnCreate_clicked () {MyDialog dialog; Dialog.setList (m_qList); // Add a member set list to your MyDialog class dialog.exec (); }

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -