[Interest] Rendering timing of qt

Lodron, Gerald Gerald.Lodron at joanneum.at
Mon Jun 25 16:52:54 CEST 2018


wouldn't the gui freeze if i would implement the command polling in gui thread?

Am 25.06.2018 16:51 schrieb Thiago Macieira <thiago.macieira at intel.com>:
On Monday, 25 June 2018 06:54:12 PDT Lodron, Gerald wrote:
> another idea what i have is to inherite of a qlabel, reimplement paint event
> and set a mutex before.... then i should be able to call repaint
> (hopefully?) from other thread... or i simply do nothing in paint event and
> make my own paint member function which i call from remote... i will test
> this tomorrow...

You cannot call repaint from another thread. You cannot touch any GUI function
from another thread.

In fact, you don't need threads for your application. Remove them.

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center



_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list