Results 1 to 2 of 2

Thread: QTreeWidget selection/focus

  1. #1
    Join Date
    Mar 2007
    Posts
    74
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default QTreeWidget selection/focus

    I am using a QTreeWidget for a tree list. It's intended to behave similar to Windows Explorer.
    When the user clicks an entry in the tree that entry is highlighted and some information appears in a workspace to the right.

    If the user clicks in the workspace area the highlighted tree entry is now cleared and nothing
    is selected or highlighted.

    I would like the selected entry to continue to indicate that it is the selected entry.
    In Explorer it changes to a grayish color.

    I have my mode/behavior set for single selection, rows.

    Thank you.

    Mark

  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 selection/focus

    But what is the problem? What have you already tried?

Similar Threads

  1. how to add icons to QTreeWidget?
    By wei243 in forum Qt Programming
    Replies: 4
    Last Post: 21st September 2007, 08:34
  2. QTreeWidget drag/drop
    By s_a_white in forum Newbie
    Replies: 1
    Last Post: 10th February 2007, 22:04
  3. resizing a QTreeWidget
    By drhex in forum Qt Programming
    Replies: 6
    Last Post: 27th October 2006, 22:32
  4. Replies: 1
    Last Post: 21st September 2006, 10:37
  5. few questions related to QTreeWidget
    By prakash in forum Qt Programming
    Replies: 9
    Last Post: 10th March 2006, 07: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.