c++ - Wait until QWidget closes -


I am working on a project in C ++ and QT, and I want to open a new QWidget window, users Interact with it, etc., then return the execution to the method which opened the window. Example (Myclass inherited from QWidiget):

  Zero Dustfume () {MyClass newWindow = new Myclass (); / * * * * * * * I do not want the new Wando to be executed here for the code / /  

I think the easiest way to do this is possible. But for some reason I can not understand this how can I do this?

yes MyClass inherit QDialog . Then open it with exec () as a modal dialog.

  Zero MainWindow :: createMyDialog () {MyClass dialog (this); Dialog.exec (); }  

Check Out


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -