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

QDrag setDragCursor allow change cursor for Qt::IgnoreAction

    XMLWordPrintable

Details

    • 91aa782f0197034e0755f131e63fcec5bbf1e956

    Description

      The current implementation of the shown cursors during dragging is very strict.

      It does not allow to change the appearance of the cursor during a ignore / not accept action.

      A small patch on QDrag would solve this annoying issue:

      void QDrag::setDragCursor(const QPixmap &cursor, Qt::DropAction action)

      5.2.0/Src/qtbase/src/gui/kernel/qdrag.cpp line 326
      if (action != Qt::CopyAction && action != Qt::MoveAction && action != Qt::LinkAction)

      change to

      5.2.0/Src/qtbase/src/gui/kernel/qdrag.cpp line 326
      if (action != Qt::CopyAction && action != Qt::MoveAction && action != Qt::LinkAction && action != Qt::IgnoreAction)

      Attachments

        Issue Links

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

          Activity

            People

              sorvig Morten Sørvig
              mstegehuis E.M. Stegehuis
              Votes:
              13 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes