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

QMdiArea with TabbedView view renders subwindow on macOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical 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

      #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();
      } 

        1. image-2018-04-23-17-43-54-017.png
          32 kB
          Tor Arne Vestbø
        2. qtbug67895.zip
          2 kB
          Friedemann Kleint
        3. image-2018-12-07-16-35-46-316.png
          197 kB
          Tor Arne Vestbø
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes