Question about window focus.
Good day!
I have a QMainWindow with 3 buttons inside, lets call it window1. When i click on button1, for example, it opens a QDialog window. The problem is when i click any one of these buttons and this QDialog opens, i cannot access window1 again to open the others QDialog through those others buttons!
How can i change that?
Re: Question about window focus.
How You open this QDialog ? You must do it with show not with exec.
Re: Question about window focus.
Sounds like you are opening the dialog as a "modal" dialog, meaning it prevents user interaction with its parent (Window modality) or any other window of the application (application modality).
Usually QDialog is non-modal, so you either set the modality or you are calling QDialog::exec().
Cheers,
_
Re: Question about window focus.
Yes, i was using exec(). I'll change to show().
Thanks!