Uploaded image for project: 'Qt 3D Studio'
  1. Qt 3D Studio
  2. QT3DS-2048

Dragging items from basic objects palette causes warnings in the log

    XMLWordPrintable

Details

    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            e0348803 Miikka Heikkinen
            e0348803 Miikka Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes