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

QMainWindow::setUnifiedTitleAndToolBarOnMac crashes for QT_QPA_PLATFORM=offscreen

    XMLWordPrintable

Details

    • macOS
    • 4b1d370f755578f60bd9c73ca98eeb8e71463caf (qt/qtbase/5.14)

    Description

      Calling QMainWindow::setUnifiedTitleAndToolBarOnMac() crashes when Qt QPA platform is set to "offscreen".

      ```QGuiApplication::platformNativeInterface()``` returns 0x0. Calling QMainWindow::setUnifiedTitleAndToolBarOnMac should just be ignored when not on mac anyway. A simple conditional should do it?

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            patrickkiddak Patrick Stinson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes