![]() |
Re: Need assistance from QT / Python programmer
Quote:
Tbh, I like your style. :cool: Basically, you went from zero to a working application in less than half day - and we just gave you some pointers about where to look, without any copy-pasteable code. :) This is quite impressive! :) ;) |
Re: Need assistance from QT / Python programmer
Quote:
The application is working fine on the device and the binary is easy to put inside my theme package. Now I need still to figure out how to display a progressbar which covers the UI while the shell script is being excecuted (running the script takes a minute, so it's good to tell the user that "this is gonna take a while, sit back and wait). I already downloaded source of fapman (great app!) because it has a nice overlay effect with bouncing status indicator, but couldn't implement it yet :) To be continued later tonight... |
Re: Need assistance from QT / Python programmer
Quote:
http://doc.qt.nokia.com/4.6/qprocess.html#finished |
Re: Need assistance from QT / Python programmer
Quote:
Allthough I don't necessarily need a progress bar, all I need is a window that covers the UI and has text that says "Please wait, setting up the theme. This may take few minutes." and the script would be executed in background. I just want to prevent user to hit the "apply settings" during the script is already running. Should I create another "form" in qt desinger and somehow launch that when the apply -button has been hit? |
Re: Need assistance from QT / Python programmer
I haven't tried this but maybe this helps...
http://doc.qt.nokia.com/qt-maemo-4.6...essdialog.html E: Or use QDialog with QProgressBar. |
Re: Need assistance from QT / Python programmer
Quote:
I'm trying to do it like this: Code:
void MainWindow::on_pushButton_clicked() |
Re: Need assistance from QT / Python programmer
The dialog gets destroyed before it shown (add progress.show() also). You can make the dialog member variable of MainWindow and create dialog with new and delete it when dialog is closed.
E: Or add dialog.exec(); :D |
Re: Need assistance from QT / Python programmer
Quote:
|
Re: Need assistance from QT / Python programmer
Quote:
|
Re: Need assistance from QT / Python programmer
Did you try the dialog.exec()? It should block until user closes it. QProgressDialog wants minimum and maximum values and it might be difficult to set. Set both values to 0 and the dialog only shows busy indicator.
|
All times are GMT. The time now is 06:08. |
vBulletin® Version 3.8.8