[Quote=引用 6 楼 tingsking18 的回复:]
这是mouseMoveEvent的解释,设置一下mouseTracking就可以了。
If mouse tracking is switched off, mouse move events only occur if a mouse button is pressed while the mouse is being moved. If mouse tracking is switched o……
[/Quote]
这是mouseMoveEvent的解释,设置一下mouseTracking就可以了。
If mouse tracking is switched off, mouse move events only occur if a mouse button is pressed while the mouse is being moved. If mouse tracking is switched on, mouse move events occur even if no mouse button is pressed.