Results 1 to 15 of 15

Thread: Mouseover signal on QAction

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: Mouseover signal on QAction

    Quote Originally Posted by manhds
    I used installEventFilter but I don't get event mouseover with QAction on QToolbar.
    How did you install the event filter?
    - You must install the event filter for the button in the toolbar, not for the action..

    Which event type are you catching? What is "event mouseover"?
    - As I mentioned earlier, mouse move events occur only if a mouse button is pressed (unless mouse tracking is on). So use enter and leave events.

  2. #2
    Join Date
    Jan 2006
    Location
    ha noi - viet nam
    Posts
    24
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    1

    Default Re: Mouseover signal on QAction

    Quote Originally Posted by jpn
    How did you install the event filter?
    - You must install the event filter for the button in the toolbar, not for the action..

    Which event type are you catching? What is "event mouseover"?
    - As I mentioned earlier, mouse move events occur only if a mouse button is pressed (unless mouse tracking is on). So use enter and leave events.
    Yes, I do it Success !
    Because Yesterday I doesn't install the event filter for the button in the toolbar.
    Thanks jpn !

Similar Threads

  1. pthread instead QThread
    By brevleq in forum Qt Programming
    Replies: 8
    Last Post: 23rd December 2008, 07:16
  2. Connection of custon signals/slots
    By brevleq in forum Qt Programming
    Replies: 2
    Last Post: 23rd December 2008, 07:04
  3. Having some QObject problems
    By Barvik in forum Qt Programming
    Replies: 7
    Last Post: 13th November 2008, 04:29
  4. QAction signal: want to send int
    By vonCZ in forum Newbie
    Replies: 10
    Last Post: 2nd July 2007, 18:52

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.