PDA

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



jyoti
14th November 2006, 10:24
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

sunil.thaha
14th November 2006, 11:17
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

jacek
14th November 2006, 11:22
The same way as here: http://www.qtcentre.org/forum/f-qt-designer-3/t-how-to-add-item-in-a-list-widget-on-clicking-of-a-pushbutton-4393.html