Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-71728

modaless dialog will be hide in main ui in mac os

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 5.11.1
    • None
    • mac os 10.11
    • macOS

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.graphics.and.multimedia Qt Graphics Team
              shellac chen yan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes