Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Qt5.12.10 iOS QDrag pixmap transparency

    Mobile and Embedded
    ios ipad drag and drop transparency pixmap
    1
    1
    312
    Loading More Posts
    • 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.
    • F
      Flock Andrew last edited by

      In every version of Qt I was willing to test setting a pixmap with transparency to a QDrag item causes the transparent pixels to be rendered as black on iOS (iPadOS versions 13.x and 14.x both on native hardware and in the simulator).
      It works correctly on macOS and windows.

      Any ideas of what I could have missed that would be causing this issue or where to look to make a solution to the problem would be greatly appreciated.

      QDrag *drag = new QDrag(this);
      //my specific mimeData gets set here 
      
      drag->setMimeData(mimeData);
      temp.fill(Qt::transparent);
      QPixmap temp(20,20);
      
      drag->setPixmap(temp);
      
      drag->setHotSpot(QPoint(0, 0));
      drag->exec(Qt::MoveAction);
      
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post