Results 1 to 5 of 5

Thread: QTreeWidget & itemLeaved

  1. #1

    Default QTreeWidget & itemLeaved

    Hi All,
    i see in QTreeWidget doc an itemEntered signal but no itemLeaved signal seems to be present how could i achieve this behaviour ?
    I need to know how long the mouse pointer is on a item before moving to another one or leave the treewidget so i was thinking that a leaveItem signal should helps in this. Any ideas ?

    Thanks in advance

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

    Default Re: QTreeWidget & itemLeaved

    You will get an itemEntered event for a different item (or null probably) and leaveEvent for the viewport when you leave the viewport.

  3. #3

    Default Re: QTreeWidget & itemLeaved

    yep i know, i read the docs but did'nt find the answer to my question: how could i know when i leave an item ?

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

    Default Re: QTreeWidget & itemLeaved

    I think I already said that You will leave an item when you enter some other item as items do not overlap.

  5. #5
    Join Date
    Jan 2013
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTreeWidget & itemLeaved

    Quote Originally Posted by wysota View Post
    You will get an itemEntered event for a different item (or null probably) and leaveEvent for the viewport when you leave the viewport.
    Sorry no answer.
    ??
    When you reach the last entry in the tree and move the mouse down.
    You don't get a message that the mouse entered an other item or left this item.
    So you don't know that the mouse is no longer over that item.

    I expected to get something like itemEntered(NULL) when the mouse is no longer
    over an item, or the mouse leaves the tree widget.

Similar Threads

  1. how to sync a QTreeWidget and a QListWidget?
    By zl2k in forum Qt Programming
    Replies: 2
    Last Post: 5th September 2008, 20:55
  2. QTreeWidget Drag and Drop
    By tommydent in forum Qt Programming
    Replies: 10
    Last Post: 25th August 2008, 15:25
  3. QTreeWidget nextSibling()
    By user_mail07 in forum Newbie
    Replies: 1
    Last Post: 21st August 2008, 19:44
  4. how to add icons to QTreeWidget?
    By wei243 in forum Qt Programming
    Replies: 4
    Last Post: 21st September 2007, 08:34
  5. resizing a QTreeWidget
    By drhex in forum Qt Programming
    Replies: 6
    Last Post: 27th October 2006, 22:32

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.