Results 1 to 3 of 3

Thread: how to add items(parent,child) in treewidget on clicking of a button

  1. #1
    Join Date
    Nov 2006
    Location
    gurgaon
    Posts
    49
    Thanks
    12
    Qt products
    Qt4
    Platforms
    MacOS X

    Question how to add items(parent,child) in treewidget on clicking of a button

    hi all
    my query is:
    i m creating a form(attached)
    when i enter name in line edit after clicking of enter first value should become parent
    then clicking of sub-item button enter text in line edit should become subitem of paricular parent
    n when we click remove button particular selected item shud be removed.if parent deleted automatically the sub items deleted from tree

    plz help me as soon as possible

    thanks in advance
    Attached Files Attached Files
    Last edited by jyoti; 14th November 2006 at 10:53.
    thanks & regards
    --------------------
    jyoti

  2. #2
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to add items(parent,child) in treewidget on clicking of a button

    Your problem can be solved in 3 easy steps
    1. learn C++
    2. Put in effort to learn Qt
    3. Before you post a question, read the docs, search the forums
    We can't solve problems by using the same kind of thinking we used when we created them

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to add items(parent,child) in treewidget on clicking of a button


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.