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

QDrag setDragCursor allow change cursor for Qt::IgnoreAction

XMLWordPrintable

    • 91aa782f0197034e0755f131e63fcec5bbf1e956

      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)

        For Gerrit Dashboard: QTBUG-26724
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes