Results 1 to 7 of 7

Thread: selection color of the items delegated in a tree widget

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2010
    Posts
    21
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default selection color of the items delegated in a tree widget

    If "row" item is selectable on the tree widget, when the row is selected, the row is highlighted, that is, it is colored with a color (blue as default). If the tree widget has some delegated items (like comboboxes, spinboxes), the delegated items do not seem as if they were selected - they are not highlighted -.

    How can we handle this? I mean, when I select the row, I want all the items to have been selected, and also, when I select a delegated item, I want the row item to have been selected. Is the only way to implement it via signal & slot mechanism? I mean, if one delegate item is clicked, the row and all the delegated items included should go into 'selected' status and vice versa (if the tree widget is selected, all the delegate items are selected.).

    Thanks for your guidance...
    Last edited by fulbay; 3rd December 2010 at 13:41.

Similar Threads

  1. QComboBox with multipe selection via tree
    By corwinj in forum Qt-based Software
    Replies: 2
    Last Post: 20th February 2015, 16:41
  2. Replies: 2
    Last Post: 20th August 2010, 05:18
  3. Context Menu for specific items in a Tree Widget
    By manekineko in forum Qt Programming
    Replies: 0
    Last Post: 16th November 2009, 01:46
  4. Tree selection - icon transparency (lack of)
    By MrGarbage in forum Qt Programming
    Replies: 1
    Last Post: 8th January 2008, 21:48
  5. Replies: 14
    Last Post: 9th November 2006, 08:35

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.