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