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

QMacStyle code references missing image resource

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.3.0 Beta2, 6.4.0 Beta1
    • 6.2
    • Widgets: Styles
    • None
    • macOS 12.2
    • macOS
    • 8247c0dac3 (qt/qtbase/dev) 8247c0dac3 (qt/tqtc-qtbase/dev) c4239ebb3b (qt/qtbase/6.2) c4239ebb3b (qt/tqtc-qtbase/6.2) f080f91fa0 (qt/qtbase/6.3) f080f91fa0 (qt/tqtc-qtbase/6.3)

    Description

      I get unexpected warnings on the console when running my Qt application on macOS:

      QPainter::begin: Paint device returned engine == 0, type: 2
      QPainter::translate: Painter not active
      QPainter::rotate: Painter not active

      The warnings are printed as soon as the application creates a QToolBar with vertical orientation. A minimal test program is attached to demonstrate the issue.

      I tracked the problem down to the following line in the implementation of QMacStyle, right here:]

      QPixmap pixmap(QLatin1String(":/qt-project.org/styles/macstyle/images/toolbar-ext.png"));
      

      The referenced image file "toolbar-ext.png" cannot be found. Apparently, the image file has been renamed some time ago, but the source code was never updated.

      https://github.com/qt/qtbase/commit/01dadd2da89dfa4f0853197ea33581552b2ce500

      Attachments

        1. CMakeLists.txt
          0.3 kB
        2. main.cpp
          0.2 kB
        For Gerrit Dashboard: QTBUG-100317
        # Subject Branch Project Status CR V

        Activity

          People

            tpochep Timur Pocheptsov
            stuko Alexander Stukowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes