Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt5.12.10 iOS QDrag pixmap transparency



  • 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);