Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.10.1, 5.11.2, 5.12.2
-
None
-
Macos High Sierra
Qt 5.10.1
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
Issue Links
- is duplicated by
-
QTBUG-40673 QStyleOptionProgressBar does not draw text on Mac OS X
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-67830 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
381236,5 | QMacStyle::drawControl - update CTM for NSProgressIndicator | dev | qt/qtbase | Status: NEW | +1 | 0 |