i have a problem getting my QDialogs modal.
What happens is, that I show my QDialogs with exec() which should make them modal (tried using setModal and show() before either). It works... for QDialogs which I start from dialogs or widget within my QMainWindow. But I have to start some QDialog directly from QMainWindow, so their QActions to open them is directly on the QMainWindow.
And here comes in a strange behaviour (at least from my perspective). When I open a QDialog from QMainWindow with exec() it is noch modal for the first time. Closing this and then opening the same or another QDialog, these dialogs are modal. So this only happens the first time.
What may be the reason for this behaviour? Is there any event that has to be triggered before I can add the first QDialogs to my QMainWindow? Or something else? Unfortunately i can't post any code, so this will be a little guessing around and collecting ideas.
The program runs on Linux.