Which Qt version are you using? I recall seeing a bug in the past that with some specific style that you had to set a value != 0 to make the busy indicator to work.
Which Qt version are you using? I recall seeing a bug in the past that with some specific style that you had to set a value != 0 to make the busy indicator to work.
J-P Nurmi
bmn (4th December 2008)
I am using Qt4
Well, that's not very exact definition. The first version of Qt 4 was released a few years ago. There have been quite a few minor and patch version upgrades since then. What is the exact version eg. 4.x.y? Which style are you using? You can see the bug situation in the task-tracker.
J-P Nurmi
bmn (4th December 2008)
bmn (4th December 2008)
Default Style
this is the test
Qt Code:
int main(int argc, char *argv[]){ QMainWindow 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
Last edited by jpn; 4th December 2008 at 19:57. Reason: missing [code] tags
First of all, could you finally start using appropriate [code] tags, please? I already sent instructions to you.
Secondly, the "default style" depends on the environment. The following piece of code prints out which style is the default style for you:
You can try different styles by passing it as a command line argument:Qt Code:
qDebug() << app.style()->objectName();To copy to clipboard, switch view to plain text mode
You can try different styles like "windows", "plastique", "cleanlooks" etc. Does any of them work?
Last edited by wysota; 2nd January 2009 at 23:20.
J-P Nurmi
bmn (4th December 2008)
So you're probably hit by this bug: QProgressBar "busy indicator" mode doesn't work in Cleanlooks style. It was fixed in Qt 4.3.0. So updating to a recent version of Qt would help as suggested earlier.
J-P Nurmi
bmn (4th December 2008)
I update my qt4.2.1 version to qt4.4.3,
I did:
qmake -project
qmake myproject.pro
make
WORKS!
but,
I try to play and happens
./mypoject: undefined symbol: _ZN10QBoxLayout10setSpacingEi
And now?? What do I do?
thanks angain,
Make clean and rebuild.
J-P Nurmi
bmn (5th December 2008)
I did:
make clean
make
on eclipe appears:
/home/alexwell/workspace/smartcardtools/Debug/SmartCardTools: symbol lookup error: /home/alexwell/workspace/smartcardtools/Debug/SmartCardTools: undefined symbol: _ZN10QBoxLayout10setSpacingEi
Thanks *JPN* !!!
I remove all qts and reinstall, now its working...
Thanks again...
It works for me in Qt 4.5.1's QProgressBar.
Just set progressBar.setMinimum(0); progressBar.setMaximum(0); in the designer works for me. The progressBar.value would be -1 automatically in designer.
Hope this helps.
Bookmarks