Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8.2, 6.9.0 Beta3
-
None
-
-
ebf542072 (dev), 06acc2021 (6.9), c85ac8ea3 (6.8)
Description
Setting application/x-color with a color as mimetype in QtQuick Drag does not work properly
Don't know how to encode variant of type QMetaType(QColor) as mime type "application/x-color"
The QMimeData that arrives on the end has application/x-color through the fallback set as a QByteArray but it still produces a warning.
Example:
import QtQuick Rectangle { id: rect width: 640 height: 480 color: "#f0f" MouseArea { anchors.fill: parent drag.target: rect Drag.dragType: Drag.Automatic Drag.active: drag.active Drag.mimeData: { "application/x-color": rect.color, } } }
Attachments
Issue Links
- relates to
-
QTBUG-121786 Verify that drag and drop between widgets and Qt Quick works
-
- Open
-
- resulted in
-
QTBUG-134313 can't drag application/x-color from one Qt application to another (is it hex or raw?)
-
- Reported
-