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. Mouse grabbing not working in menu with qwidgetaction

Mouse grabbing not working in menu with qwidgetaction

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 137 Views
  • 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.
  • ? This user is from outside of this forum
    ? This user is from outside of this forum
    Guest
    wrote on last edited by
    #1

    Hello. I have a custom component to edit number (derived from QSpinBox). I grab mouse move for line edit to simulate changing value up and down. When I grabbing mouse movement, I change cursor position to position I saved when enter editing component by mouse clicking. Everything works fine if I add component to main window. However if I have this componet in menu or popup, cursor go out of menu and I don't know why

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      It's possible you are mixing up relative to global coordinates. Can you post your code to move the mouse?

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mdan
        wrote on last edited by
        #3

        https://forum.qt.io/topic/130938/mouse-grabbing-not-working-in-menu-with-qwidgetaction. Can you answer here? I missed and send second post :-(

        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