c++ - How to pass reference to slot in QT Creator -
I have two forms in the project: mainwindow.ui and mydialog.ui <
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
Post a Comment