QmlDesigner: Change focus to 3D view on drop

Fixes: QDS-8830
Change-Id: Iaeff4768fbc4bd37223bccce72e40234752cad40
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2023-01-24 17:03:44 +02:00
parent 3e2cd2618f
commit 3070ca4fd9

View File

@@ -450,6 +450,7 @@ void Edit3DWidget::dragEnterEvent(QDragEnterEvent *dragEnterEvent)
void Edit3DWidget::dropEvent(QDropEvent *dropEvent)
{
dropEvent->accept();
setFocus();
const QPointF pos = m_canvas->mapFrom(this, dropEvent->position());
// handle dropping materials and textures