[maemo-developers] Strange problem with Maemo5ShowProgressIndicator
From: Sascha Mäkelä sascha.makela at gmail.comDate: Tue Jun 8 00:24:57 EEST 2010
- Previous message: osso_initialize: how to make it work?
- Next message: Strange problem with Maemo5ShowProgressIndicator
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I'm having a strange problem with Maemo5ShowProgressIndicator. My code
looks like this:
QMessageBox::StandardButton reply;
reply = QMessageBox::warning(this, tr("Warning!"),
QMessageBox::Yes | QMessageBox::No);
if (reply == QMessageBox::Yes) {
QWidget::setAttribute(Qt::WA_Maemo5ShowProgressIndicator, true);
// do something...
QWidget::setAttribute(Qt::WA_Maemo5ShowProgressIndicator, false);
}
I get no progress indicator with the previous code. However, when I
take it out from the IF statement, it does work. Looking like this:
QWidget::setAttribute(Qt::WA_Maemo5ShowProgressIndicator, true);
QMessageBox::StandardButton reply;
reply = QMessageBox::warning(this, tr("Warning!"),
QMessageBox::Yes | QMessageBox::No);
if (reply == QMessageBox::Yes) {
// do something...
QWidget::setAttribute(Qt::WA_Maemo5ShowProgressIndicator, false);
}
But of course this way the indicator starts too early or shouldn't
start at all. Am I doing something wrong?
Cheers,
Sascha
- Previous message: osso_initialize: how to make it work?
- Next message: Strange problem with Maemo5ShowProgressIndicator
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
