![]() |
Re: Need assistance from QT / Python programmer
I'm not sure what's wrong. I tried this code (without executing any script) and it worked:
Code:
QProgressDialog progress("Setting up the theme, please wait...", "Abort", 0, 0, this); |
Re: Need assistance from QT / Python programmer
Quote:
|
Re: Need assistance from QT / Python programmer
You can also use the progress indicator in the top bar:
Code:
setAttribute(Qt::WA_Maemo5ShowProgressIndicator, true); |
Re: Need assistance from QT / Python programmer
Quote:
|
Re: Need assistance from QT / Python programmer
Quote:
Code:
QProgressDialog *myProgressDialog; Code:
myProgressDialog = new QProgressDialog(this); Code:
myProgressDialog->show(); Code:
myProgressDialog->hide(); Code:
myProgressDialog->setAttribute(Qt::WA_Maemo5ShowProgressIndicator, true); This requires QT += maemo5 in your .pro file and #include <QtMaemo5> in your cpp file. If you happen to be on IRC, contact me. I can help. :) |
Re: Need assistance from QT / Python programmer
Forgot that it also needs this in your .pro file:
Code:
QT += maemo5 |
Re: Need assistance from QT / Python programmer
You can change QProcess::execute() to QProcess::start() which doesn't wait for process to finish.
Code:
QProcess *process = new QProcess(this); |
Re: Need assistance from QT / Python programmer
Quote:
And one more thing, how can I read a checkbox value to arguments? I tried to do it like this (check box is the last argument): Code:
arguments << ui->Transition->currentText() << ui->Font->currentText() << ui->Color->currentText() << ui->checkBoxActivate->checkState(); no match for 'operator <<' What did I do wrong (again)? |
Re: Need assistance from QT / Python programmer
Quote:
Code:
connect(process, SIGNAL(finished(int), this, SLOT(processFinished(int)); Code:
MainWindow::processFinished(int exitCode) |
Re: Need assistance from QT / Python programmer
Quote:
Quote:
Code:
QString checkboxstate; |
All times are GMT. The time now is 23:16. |
vBulletin® Version 3.8.8