Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的程序中,可以用鼠标抓取点并移动它们。问题是我释放鼠标按钮后 Qt 没有释放该点。是不是有类似的东西:
if(Qt::Leftbutton && isPressed(true))
我确实在 trolltech 网站上看过,但找不到有用的东西
谢谢..
尝试mouseReleaseEvent。