c++ - Qt: Updates can only be scheduled from GUI thread or from QQuickItem::updatePaintNode -


how can call update() on qquickitem worker thread without causing following warning?

updates can scheduled gui thread or qquickitem::updatepaintnode() 

i want enforce qquickitem::updatepaintnode() execute.

i tried solution of hooking qobject::connect worker thread slot calls myqquickitem->update(). everything works fine though. qquickitem::updatepaintnode() called after signal emit & qquickitem updated the way want. warning on every update call schedule i understand cannot update ui worker thread. way without warning in qt?

but, how can rid warning on every update call?

note: had make qobject::connect qt::directconnection since qt::queuedconnection did not work calling update through signal.

checked through this discussion here. discussion in link ends complain same warning getting here. question should correct avoid warning?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -