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

QStyleOptionProgressBar doesn't display anything (no bar nor text) on Macos High Sierra

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.10.1, 5.11.2, 5.12.2
    • None
    • Macos High Sierra

      Qt 5.10.1
    • macOS

    Description

      QStyleOptionProgressBar displays nothing (Macos High Sierra, Qt 5.10.1 from Qt installer)

      Here's the code from the example Qt program "torrent" :

      // Set up a QStyleOptionProgressBar to precisely mimic the
       // environment of a progress bar.
       QStyleOptionProgressBar progressBarOption;
       progressBarOption.state = QStyle::State_Enabled;
       progressBarOption.direction = QApplication::layoutDirection();
       progressBarOption.rect = option.rect;
       progressBarOption.fontMetrics = QApplication::fontMetrics();
       progressBarOption.minimum = 0;
       progressBarOption.maximum = 100;
       progressBarOption.textAlignment = Qt::AlignCenter;
       progressBarOption.textVisible = true;

       

      When using Qt 5.9.x, the progress bar works though there is no text displayed.

      On Linux (Debian stable, testing, Ubuntu 16.04) and Windows 7 and 10 the progress bar is displayed and animated properly.

      Attachments

        1. MacOs_10.11.6_qt_5.11.2_torrent.png
          MacOs_10.11.6_qt_5.11.2_torrent.png
          942 kB
        2. progb.tar.gz
          1 kB
        3. Win7_qt5.10.1.jpg
          Win7_qt5.10.1.jpg
          238 kB
        4. Win7_qt5.11.1.jpg
          Win7_qt5.11.1.jpg
          258 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-67830
          # Subject Branch Project Status CR V

          Activity

            People

              tpochep Timur Pocheptsov
              intellique intellique
              Votes:
              5 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change