[SOLVED] Implementing draggable windows
General and Desktop
4
Posts
2
Posters
932
Views
1
Watching
-
Well you can implement something like this:
@void Dialog::mouseMoveEvent(QMouseEvent *event)
{
if(event->buttons() & Qt::LeftButton)
{
this->move(event->globalPos() - cursorPos);
}
}void Dialog::mousePressEvent(QMouseEvent *event)
{
if(event->buttons() & Qt::LeftButton)
{
cursorPos = event->pos();
}
}@