thanks
but the t QWidget::mouseMoveEvent does not perform as expected.
here is the code, i dont know what is the bug in it
{
//the distance moved by mouse is mapped to top left of widget
this->move(mapToGlobal(event->pos()) - this->mapToGlobal(this->pos()));
}
void IV_label::mouseMoveEvent ( QMouseEvent * event )
{
//the distance moved by mouse is mapped to top left of widget
this->move(mapToGlobal(event->pos()) - this->mapToGlobal(this->pos()));
}
To copy to clipboard, switch view to plain text mode
the widget(label) moves and becomes invisble
i want to move a label using mouse
Bookmarks