diff --git a/frame/item/appitem.cpp b/frame/item/appitem.cpp index 834154bd5..afec37071 100644 --- a/frame/item/appitem.cpp +++ b/frame/item/appitem.cpp @@ -137,6 +137,7 @@ void AppItem::startDrag() qDebug() << "dnd result: " << result; m_draging = false; + setVisible(true); update(); } diff --git a/frame/panel/mainpanel.cpp b/frame/panel/mainpanel.cpp index 35e2e5b87..bd6a701e7 100644 --- a/frame/panel/mainpanel.cpp +++ b/frame/panel/mainpanel.cpp @@ -142,5 +142,9 @@ void MainPanel::itemDragStarted() { DragingItem = qobject_cast(sender()); - DragingItem->setVisible(rect().contains(QCursor::pos())); + QRect rect; + rect.setTopLeft(mapToGlobal(pos())); + rect.setSize(size()); + + DragingItem->setVisible(rect.contains(QCursor::pos())); }