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

        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