Results 1 to 3 of 3

Thread: QMenu action cursor type change

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    520
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 77 Times in 75 Posts

    Default Re: QMenu action cursor type change

    Hi, as far as I remember you don't get events/signals for disabled widgets.

    Ginsengelf

  2. #2
    Join Date
    Aug 2017
    Posts
    5
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QMenu action cursor type change

    In the slot for hovered signal, I check the action to see if it is enabled.
    If it is enabled, I set the cursor for the menu to be pointing hand cursor.
    If it is not enabled, I set the cursor for the menu to be arrow cursor.

    But the mouse cursor does not change, even though the call to QMenu::setCrursor
    gets executed.

    GUI Developer

Similar Threads

  1. How to perform action on clicking a QMenu object only?
    By Sai Kamat in forum Qt Programming
    Replies: 1
    Last Post: 5th March 2014, 12:35
  2. Replies: 11
    Last Post: 8th February 2013, 13:59
  3. Hide shorcut text of QMenu Action
    By KillGabio in forum Qt Programming
    Replies: 5
    Last Post: 19th January 2012, 09:43
  4. Hidden mouse cursor reappears when a QMenu is displayed
    By cristeab in forum Qt Programming
    Replies: 3
    Last Post: 20th July 2011, 08:58
  5. QMenu still highligheted after action fired in mac
    By berinder in forum Qt Programming
    Replies: 2
    Last Post: 1st September 2008, 19:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.