I have an instance of QProgressBar in selection mode (maximum = minimum = 0).
Now I would like to add text above the progress bar, for example, "Loading ..."
The documentation says:
Please note that regardless of whether the text is drawn, it depends on the style. CDE, CleanLooks, Motif, and Plastique are currently drawing text. Mac, Windows and WindowsXP do not.
What should I do?
This is the code I'm using (doesn't work, as the text doesn't display at all):
progressBar.setVisible(true); progressBar.setMaximum(0); progressBar.setMinimum(0); progressBar.setTextVisible(true); progressBar.setFormat("Loading..."); progressBar.setAlignment(Qt::AlignCenter);
Stephen H. Anderson
source share