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

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

XMLWordPrintable

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

      Qt 5.10.1
    • macOS

      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.

        1. MacOs_10.11.6_qt_5.11.2_torrent.png
          942 kB
          Guillaume Clercin
        2. progb.tar.gz
          1 kB
          Timur Pocheptsov
        3. Win7_qt5.10.1.jpg
          238 kB
          Guillaume Clercin
        4. Win7_qt5.11.1.jpg
          258 kB
          Guillaume Clercin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:

                There are no open Gerrit changes