【发布时间】:2014-02-01 07:18:51
【问题描述】:
我记得在 C# 中有一个名为 DragMove() 的方法,它允许通过单击选定区域来拖动窗口。
示例(来自this 答案):
private void Window_MouseDown(object sender, MouseButtonEventArgs e)
{
if (e.ChangedButton == MouseButton.Left)
this.DragMove();
}
Qt世界有这样的功能吗?
我知道a solution would be to listen for mousePressEvent and mouseMoveEvent,但我只是想知道是否有允许在屏幕上拖动winodw 的本机方法,就像在C# 中一样this.DragMove()。
另外,它需要跨平台...
【问题讨论】: