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

modaless dialog will be hide in main ui in mac os

XMLWordPrintable

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

      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;} 

        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
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes