Home > Mobile >  For help, custom primitives, set up mobile, why figure yuan move faster than the mouse
For help, custom primitives, set up mobile, why figure yuan move faster than the mouse

Time:04-11

As shown in figure


Why primitive mobile than mouse
With the mouse synchronization

CodePudding user response:

This - & gt; SetFlags (QGraphicsItem: : ItemIsSelectable |
QGraphicsItem: : ItemIsFocusable |
QGraphicsItem: : ItemIsMovable);

Set the QGraphicsItem: : ItemIsMovable to implement mobile

After the customize mousePress, mouseMove to achieve the same effect, mouse synchronization primitives discord, much faster

How to solve this problem?
  •  Tags:  
  • Qt
  • Related