Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-57936

QML Drag and Drop shows monochrome 'Slashed circle' cursor instead of standard color IDC_NO cursor

    XMLWordPrintable

Details

    Description

      QML Drag and Drop shows monochrome 'Slashed circle' cursor instead of standard color IDC_NO cursor.

      There seems to be no way to access QDrag object created by QQuickDragAttachedPrivate to change the default 'forbidden' cursor to the default IDC_NO.png color version. Failing that, the code runs through the standard COM / OLE path which shows a monochrome version of the icon instead of the WinApi version.

      this is on Windows 10

      Drag.dragType: Drag.Automatic on QML Rectangle

      Repro steps:

      Attached is repro.zip (source code) that shows the correct color 'IDC_NO' icon when hovering over the yellow box, and the 'incorrect' black and white 'NO' icon when dragging the red box.

      Attachments

        1. repro.zip
          1 kB
        2. repro.png
          repro.png
          1 kB
        3. OLE_NO.png
          OLE_NO.png
          0.9 kB
        4. IDC_NO.png
          IDC_NO.png
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            patrick_cmlabs Patrick Pelletier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes