Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt5.12.10 iOS QDrag pixmap transparency
Forum Updated to NodeBB v4.3 + New Features

Qt5.12.10 iOS QDrag pixmap transparency

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
ios ipaddrag and droptransparencypixmap
1 Posts 1 Posters 598 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.
  • F Offline
    F Offline
    Flock Andrew
    wrote on 8 Feb 2021, 19:59 last edited by
    #1

    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
    0

    1/1

    8 Feb 2021, 19:59

    • Login

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