Qt 6.11 is out! See what's new in the release
blog
QQuickPaintedItem thread-safe?
-
I have a QQuickPaintedItem-derived object that does some painting, using data structures that are updated in UI and network event handlers.
The documentation here warns that the paint method may be called in a different thread, but then states "At the moment paint() is called, the GUI thread is blocked and this is therefore thread-safe." I find this statement a bit vague. This does this mean that the paint thread is not preempted by the GUI thread, or that the GUI thread is not preempted by the paint thread, or both?
Is the synchronization built into the GUI thread and Render thread sufficient for my use case, or should I add my own synchronization for access to the data structures?