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

QMdiArea with TabbedView view renders subwindow on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.5
    • 5.10.0, 5.10.1, 5.11.0 Alpha, 5.12
    • Widgets: Styles
    • None
    • macOS
    • Bug Fixing Week Q2/2020

    Description

      #include <QApplication>
      #include <QMainWindow>
      #include <QMdiArea>
      #include <QWindow>
      
      #include <QPushButton>
      
      int main(int argc, char *argv[])
      {
      QApplication a(argc, argv);
      
      QMainWindow mainWindow;
      
      QMdiArea *mdiArea = new QMdiArea(&mainWindow);
      mdiArea->setViewMode(QMdiArea::TabbedView);
      
      QWidget *widget1 = new QPushButton("Bar");
      mdiArea->addSubWindow(widget1);
      
      QWidget *widget2 = new QPushButton("Foo");
      mdiArea->addSubWindow(widget2);
      
      mainWindow.setCentralWidget(mdiArea);
      mainWindow.show();
      
      return a.exec();
      } 

      Attachments

        1. image-2018-04-23-17-43-54-017.png
          32 kB
          Tor Arne Vestbø
        2. image-2018-12-07-16-35-46-316.png
          197 kB
          Tor Arne Vestbø
        3. qtbug67895.zip
          2 kB
          Friedemann Kleint

        Issue Links

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

          Activity

            People

              tpochep Timur Pocheptsov
              vestbo Tor Arne Vestbø
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes