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

modaless dialog will be hide in main ui in mac os

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Duplicate
    • Affects Version/s: 5.11.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      mac os 10.11
    • Platform/s:
      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

        1. Screen Shot 2018-11-12 at 19.08.41.png
          21 kB
          chen yan
        2. Screen Shot 2018-11-12 at 19.08.50.png
          19 kB
          chen yan
        3. test.zip
          5 kB
          chen yan

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.graphics.and.multimedia Qt Graphics Team Oslo
              Reporter:
              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