Unsolved minimumWidth and DropArea not work in UWP
-
minimumWidth and DropArea not work in UWP.
the code below can reproduce the two bugs.
Please help me, thanksimport QtQuick 2.14 import QtQuick.Window 2.2 Window { minimumWidth: 1024 minimumHeight: 1024 DropArea { anchors.fill: parent onDropped: { console.log("accept ", drop.text); } } }
-
Not sure if this is the reason, but look here: https://doc.qt.io/qt-5/winrt-support.html#notes-to-desktop-users
The UWP clipboard is local to the application; it cannot be retrieved by a desktop application.
This might indirectly mean that dropping from outside into the sandbox is impossible. Or, like you say, it is a bug.
In any case, UWP support will be dropped in Qt 6. If your project has a chance to resign from using UWP, it's a good idea to do so.