Qt 6.11 is out! See what's new in the release
blog
Get mouse position in StartDrag()
General and Desktop
2
Posts
2
Posters
984
Views
1
Watching
-
Hi,
I use QListWidget and drag it's QListWidgetItem. In StartDrag() event, i want to get mouse-position. Does anyone know how to do that?@void VideoSegmentList::startDrag(Qt::DropActions /supportedActions/)
{
//How to get mouse postion in here!
}@Thanks.
-
void MainWindow::mouseMoveEvent(QMouseEvent *event){
qDebug() << event->pos();
}Use event->pos Value in Your Function.