[PyQt] Responsive thead in preview mode in Qt Designer
David Boddie
david at boddie.org.uk
Sat Aug 6 12:40:59 BST 2016
On Fri, 5 Aug 2016 18:19:08 +0000, Lais P. Carmo wrote:
> Now I need the custom label to be responsive when one enters the preview
> mode, in other words, with its text updating every second. However the
> updates doesn't occur, the text keeps fronzen, except when I move/resize
> the custom label in the edit mode (or anything that forces the Designer to
> update its entire GUI).
>
> Recently I used a Designer plugin that does exactly the same thing, but its
> written in C++. I need to have this effect in Python.
I don't remember if Designer informs the plugin that it wants the widgets to
be created for use in a preview, so there may not be a way of knowing that.
It may be that one of the PyQt examples can give you some ideas. The analog
clock plugin uses a timer, not a thread, but perhaps it can help you diagnose
what is going wrong.
If you have the source code for the C++ plugin, it may be possible to convert
it to Python. Ask if you need help with that.
David
More information about the PyQt
mailing list