Results 1 to 8 of 8

Thread: Creating children in QtreeWidget with SQL data

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2016
    Posts
    17
    Qt products
    Qt4
    Platforms
    Windows

    Post Creating children in QtreeWidget with SQL data

    Hello
    I have two tables in SQL database and 1st table I have created as a parent In QtreeWidgit using QtreeWidgetItems now I have to add children in parents items respectly, here is the example

    table1

    Name
    1. Marcus
    2. Andreas
    3. Jacop



    table 2

    Column 1
    Devices
    1. Laptop
    2. Cell Phon
    3. Pc
    4. Laptop
    5. PC
    6. Cell Phon


    Column 2
    Name
    1. Marcus
    2. Marcus
    3. Marcus
    4. Andreas
    5. Andreas
    6. Jacop




    Here table 1 is my parent items and table 2 has two column first is my children items and second I have given for the reference.
    Now I have added parent in my QtreeWidget using QtreeWidgetItem but I am not able to add children saperatly.

    Main problem I am getting is, Wheneever I add children, All children were added In each parent .

    Looking for your advise
    Thanks in advance.
    Last edited by sam123; 16th June 2016 at 11:26.

Similar Threads

  1. Replies: 1
    Last Post: 24th February 2016, 17:00
  2. Replies: 4
    Last Post: 22nd January 2013, 19:53
  3. QTreeWidget disable children
    By hlvietlong in forum Qt Programming
    Replies: 1
    Last Post: 20th June 2009, 01:34
  4. creating different types of mdi children
    By OriginalCopy in forum Qt Programming
    Replies: 2
    Last Post: 10th March 2008, 16:51
  5. Replies: 1
    Last Post: 19th October 2007, 01:29

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.