PDA

View Full Version : How to add a QPushBotton in a QTreeView?



bhodi78
5th May 2010, 12:30
Hello, I would add a QPushBotton for each row in a QTreeView, so that this button when clicked delete the row from the QTreeView.
I have attached the code of what I've done. Unfortunately I have to click twice on the button to edit the field and then click the button delete.
How do I delete the row by clicking once on the button? I hope some of you can help me.
Thank you and goodbye.