Weird error with QGraphicsItem sent from one thread to another.
-
Hello everyone, I'm facing a strange error.
I have a processing thread that emit a few signal with QGraphicsItem* in parameters.
Those signals are connected to the main thread which then add them to a QGraphicsViews.
It works pretty well, until today. In addition to the ellipses and line I decided to add a QGraphicsTextItem*It still work, until the application loses focus. At this very specific moment, I get this error:
!http://i.imgur.com/K6arKe3.png!Why does it crash with text items only? And why when the application loses focus?
I'm lost! -
But the thread is only responsible for creating the object. All the display is done in the main thread.
-
But QGraphicsItem does not derive from QObject.