Ht all,
I am a bit new so some basic stuff i might not know. SOrry if this post should have been on the newbie section but I am not sure it s that simple.
So, I've started from example DiagramItem and added the following:
- a poolThread (producer consumer type) to update a value from each DiagramItem every 1s. More exactly, the background according to the result of a QProcess return code. After the value is changed, the item->update() is called
- a Graphics_view_zoom
- a symbol to draw in the DiagramItem when mouse hover
I am using QMutexLocker for thread safe, and no I am not using signals to communicate between the threads and the Items, just changing a value and call update().
Everything works fine at start, but after a while (couldn't find what happens), the items paint function is not called, even when i have the mouse one it. ONLY when zooming in/out does it update for a moment.
I can post section from code if needed.
I need help with this please!
Many thanks
Bookmarks