[PyQt] Show QDialog and execute code after
Maurizio Berti
maurizio.berti at gmail.com
Sat Apr 14 19:01:36 BST 2018
> I making an update app that shows a QTextEdit object and starts (should)
start to get information from the system before
> ask the user what to do, it does that but if now but only after the
function get all the system info and the it draws the QDialog.
>
> It's something like a Debian apt-get where the terminal is showing what
is appending before and after each operation.
If that's the case, you should use a separate QObject that collects the
output of apt-get and emits a signal every time it has something to show.
That QObject has to be moved to a new QThread, so that the apt-get process
will not block the GUI interaction and painting.
Regards,
Maurizio
--
È difficile avere una convinzione precisa quando si parla delle ragioni del
cuore. - "Sostiene Pereira", Antonio Tabucchi
http://www.jidesk.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180414/a273d27b/attachment.html>
More information about the PyQt
mailing list