Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
Qt 3D Studio 2.1 BETA1
-
None
-
e6adba677bb410ce6df52a401461b558def56ea5
Description
BasicObjectsView::startDrag() sets drag pixmap to index.data(BasicObjectsModel::IconRole).toUrl().toLocalFile(), which is always an empty string, since toLocalFile() can't deal with qrc urls. This causes numerous "QPixmap::scaled: Pixmap is a null pixmap" warnings in the log.
Using QQmlFile::urlToLocalFileOrQrc to get the correct path is probably what should be called instead of toLocalFile. However, it should be checked if setting pixmap here has any visible effect on the drag; perhaps we can just omit this line.
Attachments
For Gerrit Dashboard: QT3DS-2048 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
236435,2 | Fix drag icon when dragging from basic objects of project palette | master | qt3dstudio/qt3dstudio | Status: MERGED | +2 | 0 |