You need to provide getter methods in the dialog class to do that. Or you can make the ui for the dialog public, but this is really not advised.
You need to provide getter methods in the dialog class to do that. Or you can make the ui for the dialog public, but this is really not advised.
sincnarf (22nd October 2007)
When allocating on the heap (using new) you have to use pointer:but on compile has the error
mainwindow.cpp:2222: error: initializing temporary from result of 'IADFUQParameterDialog::IADFUQParameterDialog(QWid get*)'
And if you need to access this pointer in other places as well, you will want to make it a member variable.Qt Code:
IADFUQParameterDialog *dialog = new IADFUQParameterDialog(this);To copy to clipboard, switch view to plain text mode
Well, the difference between show() and exec() is the modality mode.sorry, tried to use dialog.exec() and it showed...
But both should work.
Have a look at the faqs for "I have created a widget/dialog and it is not visible when I call show(). Why?"
Last edited by high_flyer; 22nd October 2007 at 09:38.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks