Congratulations to our 2022 Qt Champions!

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, thanks

    import QtQuick 2.14
    import QtQuick.Window 2.2
    Window {
        minimumWidth: 1024 
        minimumHeight: 1024 
        DropArea {
            anchors.fill: parent
            onDropped: {
                console.log("accept ", drop.text);

  • Moderators

    Not sure if this is the reason, but look here:

    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.

Log in to reply