I'm new to Qt, so please be patient with a probably simple question. I'm trying to show a (modal) dialog when a button is pressed in my main window. This is based on QWidget and displayed with .showFullScreen().
The Dialog was created with the dialog designer of Qt Creator. In the slot function which is called when the button is pressed, I instantiate an object from the class created by the designer. I expected to be able to display it by simply calling its .exec() method. But I found that I have to first hide my main window to be able to see the dialog. But there should be a way to have the dialog simply appear on top of the main window.
Can anyone tell me what I'm missing here?