I’m trying to embed a QWidget based widget in a QGraphicsScene/View. In this widget, I change its cursor with some shortcuts, but when it is embeded to the scene, the cursor won’t update on time. I have to move the cursor out of the widget and move in, then the cursor changes to what I want.
I have searched Qt bugreport, and find some similar issues since Qt4.4. It seems that QGraphicsProxyWidget just can’t synchronize its cursor with its QWidget on time. I temporarily fixed this problem by install an eventFilter to my QWidget, and filter event with QEvent::CursorChange type, and manually set proxy’s cursor.
I wonder if I have a better way to solve this matter? Did I miss some properties or something? Or is it really a bug that hasn’t been fixed?
↧