Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Convert QGraphicsSceneDragDropEvent to QDragMoveEvent
Forum Updated to NodeBB v4.3 + New Features

Convert QGraphicsSceneDragDropEvent to QDragMoveEvent

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 393 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cjacquel2021
    wrote on last edited by
    #1

    Hello,

    How to convert QGraphicsSceneDragDropEvent to QDragMoveEvent ?

    Inside this function :
    void DragAndDropObj::dragMoveEvent(QGraphicsSceneDragDropEvent *event)

    Thx

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What is your final goal ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cjacquel2021
        wrote on last edited by
        #3

        I want to set up the answerRect that is on the DragMoveEvent for use in the dragMoveEvent

        To limit the mouse mouvement allowed during the Drag inside a given rectangle.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Usually when one wants to enforce the movement of a mouse cursor to a specific area, they do so by hiding the real mouse cursor and manage a "virtual cursor".

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • C Offline
            C Offline
            cjacquel2021
            wrote on last edited by
            #5

            Hello,

            could you send me the main instructions to do it ?
            Thx

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              See this post for the big picture..

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved