I have a QProgressBar instance in marquee mode (maximum = minimum = 0).
I would now like to add some text over the progress bar like "Loading..."
The documentation says:
Note that whether or not the text is drawn is dependent on the style. Currently CDE, CleanLooks, Motif, and Plastique draw the text. Mac, Windows and WindowsXP style do not.
What should I do?
This is the code I'm using (not working as text isn't visible at all):
progressBar.setVisible(true);
progressBar.setMaximum(0);
progressBar.setMinimum(0);
progressBar.setTextVisible(true);
progressBar.setFormat("Loading...");
progressBar.setAlignment(Qt::AlignCenter);