-
Type:
Bug
-
Status: Closed
-
Priority:
P3: Somewhat important
-
Resolution: Duplicate
-
Affects Version/s: 5.11.1
-
Fix Version/s: None
-
Component/s: Widgets: Widgets and Dialogs
-
Labels:None
-
Environment:mac os 10.11
-
Platform/s:
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;}
- duplicates
-
QTBUG-34767 Modeless window on Mac behind its parent window
-
- Closed
-