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

Qt5.12.10 iOS QDrag pixmap transparency

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
ios ipaddrag and droptransparencypixmap
1 Posts 1 Posters 534 Views
  • 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 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

    • Login

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