I'm faced with the problem described in the initial question: call setTextDirection(QProgressBar::BottomToTop) makes no visual difference on the progress bar. The code is:
pb2->setOrientation(Qt::Vertical);
pb2->setRange(0, 100);
pb2->setValue(20);
current_layout->insertWidget(current_index++,pb2);
QProgressBar* pb2=new QProgressBar;
pb2->setOrientation(Qt::Vertical);
pb2->setTextDirection(QProgressBar::BottomToTop);
pb2->setRange(0, 100);
pb2->setValue(20);
current_layout->insertWidget(current_index++,pb2);
To copy to clipboard, switch view to plain text mode
The text on the resulting progress bar is stil oriented top-to-bottom...
progressbar.png
Question is how to get the text oriented bottom-to-top?
Thank you in advance!
UPDATE:
This issue is caused by GTK+ style. The documentation says that some styles do not draw the text. This style seems to ignore the text direction option. From what I was able to test:
- Motif, CDE and Plastique styles draw the text correctly;
- Windows and Cleanlooks do not draw the text at all;
- GTK+ is buggy - draws the text but ignores the text direction option.
Hope this is helpful...
Bookmarks