Home > other >  QWidget rotation
QWidget rotation

Time:03-21

How do you make QWidget window with the mouse to drag rotation

CodePudding user response:

First rewrite the mouse press and moving events, to get the mouse position, and then use the window location and mouse position Angle calculation, finally is set qwidget window Angle, can refer to the link: https://blog.csdn.net/weixin_42887343/article/details/115037420
  • Related