croscato
30th July 2009, 08:28
Hi all.
I'm wish to add a QProgressBar to a QStatusBar in QMainWindow. But it must not be visible all the time.
I'm using a code similar to this and can't get it to work
Form::Form(QWidget* parent): QMainWindow(parent)
{
progress = new QProgressBar(this);
progress->setVisible(false);
statusbar->addPermanentWidget(progress);
}
Form::showProgress(bool visible)
{
progress->setVisible(visible);
}
Any ideas???
Thanks in advance!
I'm wish to add a QProgressBar to a QStatusBar in QMainWindow. But it must not be visible all the time.
I'm using a code similar to this and can't get it to work
Form::Form(QWidget* parent): QMainWindow(parent)
{
progress = new QProgressBar(this);
progress->setVisible(false);
statusbar->addPermanentWidget(progress);
}
Form::showProgress(bool visible)
{
progress->setVisible(visible);
}
Any ideas???
Thanks in advance!