Results 1 to 4 of 4

Thread: How I can use a "Mouse Leave" event inside QItemDelegate::editorEvent ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How I can use a "Mouse Leave" event inside QItemDelegate::editorEvent ?

    You will not catch a leaveEvent this way as the cursor is not over the item anymore so a different item will start receiving events. That's your clue that the cursor has left the item.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Jul 2014
    Posts
    14
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How I can use a "Mouse Leave" event inside QItemDelegate::editorEvent ?

    So, the solution is to remove the pressed flag from the event function of all other widgets, when they get an event? Does not seem right.

  3. #3
    Join Date
    Jul 2014
    Posts
    14
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How I can use a "Mouse Leave" event inside QItemDelegate::editorEvent ?

    with the MouseOver option flag like described here it works: http://www.qtcentre.org/threads/1314...te-enter-event

Similar Threads

  1. Replies: 2
    Last Post: 20th March 2010, 18:22
  2. How to "sleep" inside QRunnable-derived class?
    By TorAn in forum Qt Programming
    Replies: 6
    Last Post: 19th November 2009, 22:03
  3. Mouse Leave and Tab Key event in Delegate
    By faldzip in forum Qt Programming
    Replies: 0
    Last Post: 30th October 2008, 19:04
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  5. Replies: 7
    Last Post: 20th November 2007, 12:15

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.