
Originally Posted by
jpn
The current stable version of Qt is 4.4.3. Probably it's time to upgrade. Anyway, have you tried the trick setting the value to something != 0? And again, which style you are using?
Default Style
this is the test
int main(int argc, char *argv[]){
progressBar->setMaximumHeight(16);
progressBar->setMaximumWidth(200);
progressBar->setTextVisible(false);
progressBar->setMaximum(0);
progressBar->setMinimum(0);
progressBar->setValue(1); // ??? don't move the bar
window.statusBar()->addPermanentWidget(progressBar);
window.statusBar()->showMessage("Loading");
window.show();
app.exec();
}
int main(int argc, char *argv[]){
QApplication app(argc, argv);
QMainWindow window;
QProgressBar* progressBar = new QProgressBar(&window);
progressBar->setMaximumHeight(16);
progressBar->setMaximumWidth(200);
progressBar->setTextVisible(false);
progressBar->setMaximum(0);
progressBar->setMinimum(0);
progressBar->setValue(1); // ??? don't move the bar
window.statusBar()->addPermanentWidget(progressBar);
window.statusBar()->showMessage("Loading");
window.show();
app.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks