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. Cursor monitoring object
Qt 6.11 is out! See what's new in the release blog

Cursor monitoring object

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 945 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.
  • S Offline
    S Offline
    ShinSat
    wrote on last edited by
    #1

    Hi Gurus,

    A quick question.
    Is it possible to create an object, which monitors the cursor on the system (eg.Windows platform) and fires mouseMoveEvent(this can be a signal) when needed?
    Should it be a QWidget, which can be invisible and track global position of the cursor?
    Please help as I'm not familiar with this kind of implementation. :<

    Thanks in advance for your update.
    Sat

    JonBJ 1 Reply Last reply
    0
    • S ShinSat

      Hi Gurus,

      A quick question.
      Is it possible to create an object, which monitors the cursor on the system (eg.Windows platform) and fires mouseMoveEvent(this can be a signal) when needed?
      Should it be a QWidget, which can be invisible and track global position of the cursor?
      Please help as I'm not familiar with this kind of implementation. :<

      Thanks in advance for your update.
      Sat

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @ShinSat
      Excuse me if I don't understand/am mistaken, but once you have a Qt application running mouseMoveEvent signals are fired (by Qt infrastructure) when the mouse is moved, so what do you mean about "monitoring and firing"?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        ShinSat
        wrote on last edited by ShinSat
        #3

        Thanks for an update and sorry for vague explanation.

        Let me explain further.
        Please forget about my previous explanation.

        I want to create Drag&Drop capability between widgets where each widget is on different QMainWindow.
        When I create a QDrag object and execute it as MoveAction, mouseMoveEvent is NOT fired and it results in that I can't move the source widget.
        Is there any way to get mouseMoveEvent while QDrag MoveAction opareted?

        Sat

        J.HilkJ 1 Reply Last reply
        0
        • S ShinSat

          Thanks for an update and sorry for vague explanation.

          Let me explain further.
          Please forget about my previous explanation.

          I want to create Drag&Drop capability between widgets where each widget is on different QMainWindow.
          When I create a QDrag object and execute it as MoveAction, mouseMoveEvent is NOT fired and it results in that I can't move the source widget.
          Is there any way to get mouseMoveEvent while QDrag MoveAction opareted?

          Sat

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @ShinSat not possible with Qt alone. You'll need platform specific functions and libaries. for Windows you can take a look at this entry.


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          1

          • Login

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