Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. TreeView Content with common parent and different children
Forum Updated to NodeBB v4.3 + New Features

TreeView Content with common parent and different children

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 225 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    QtisHard
    wrote on last edited by QtisHard
    #1

    In one of my xml files, has

    <data>
    <feature>
    <name>Size</name>
    <value>Small</value>

    </feature>
    <feature>
    	<name>Size</name>
    	<value>Small2</value>
    	
    </feature>
    <feature>
    	<name>Size</name>
    	<value>Small3</value>
    	
    </feature>
    <feature>
    	<name>Size</name>
    	<value>Small4</value>
    	
    </feature>
    

    <feature>
    <name>Size1</name>
    <value>Small</value>

    </feature>
    <feature>
    	<name>Size1</name>
    	<value>Small2</value>
    	
    </feature>
    <feature>
    	<name>Size1</name>
    	<value>Small3</value>
    	
    </feature>
    <feature>
    	<name>Size1</name>
    	<value>Small4</value>
    	
     </feature>
    

    <data>

    Is it possible for me to create one Parent names Size in the TreeView and Add Small, Small2, Small3 and Small4 as the children? And another Parent Size1 and Small, Small2, Small3 and Small4 as its children?
    If yes then how do I proceed with this?
    Please do help me with this

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      There's the Simple DOM model example that you can get inspiration from.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved