Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. minimumWidth and DropArea not work in UWP

minimumWidth and DropArea not work in UWP

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 243 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cgrambler
    wrote on last edited by
    #1

    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);
            }
        }
    }
    
    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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.

      (Z(:^

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved