Results 1 to 2 of 2

Thread: Adding SubColumn to the root item in the QTreeView

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2021
    Posts
    27
    Thanks
    5

    Default Adding SubColumn to the root item in the QTreeView

    I have implemented a QTreeView using the SimpleTreeModel example.

    But now I want to add two sub-columns in one root item. For example, Entries "item A" and "Value" will be inside one root entry "Data A". Similarly Entries "item B" and "Value" will be another root entry "Data B".

    Can anybody tell how it can be done?

    Thanks in advance
    Attached Images Attached Images

Similar Threads

  1. Replies: 0
    Last Post: 27th August 2018, 03:59
  2. Replies: 7
    Last Post: 4th July 2015, 12:41
  3. QTreeView: How to create objects from root items?
    By ficaras0 in forum Qt Programming
    Replies: 3
    Last Post: 24th June 2015, 10:05
  4. Need to remove root node from QTreeView
    By tescik in forum Qt Programming
    Replies: 4
    Last Post: 24th April 2014, 10:54
  5. QTreeView: include root in tree?
    By meter in forum Newbie
    Replies: 2
    Last Post: 14th June 2010, 13:59

Tags for this Thread

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.