Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
5.11.1
-
None
-
mac os 10.11
Description
We want to show a Modaless dialog in main UI. When the main UI first appears, the dialog in on the ui, but we we click the main ui, the dialog will be hided behind of main ui.
This issue happens in mac os , Windows doesn't have this issue.
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDialog>
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow)
{ ui->setupUi(this); QDialog *dialog = new QDialog(this); dialog->setModal(false); dialog->show(); }
MainWindow::~MainWindow(){ delete ui;}
Attachments
Issue Links
- duplicates
-
QTBUG-34767 Modeless window on Mac behind its parent window
-
- Closed
-