osiris81
15th June 2009, 13:11
Hello,
I use a QTreeWidget to display a list with multiple columns (replacement of the Q3ListView).
It has to be possible to change the content of one of the columns (a dilaog has to be appear).
Now, the user can click the cell and the dialog appears, but the user has to know that, otherwise he does not know how to change the content.
That's why I'd like to insert a button at the end of this column, similar to dialogs of MS Visual Studio for example (see attachement).
The QTreeWidgetItem has only a setICon() method, I need something like a setWidget() method.
What would be an easy way to bring that button into the item?
I use a QTreeWidget to display a list with multiple columns (replacement of the Q3ListView).
It has to be possible to change the content of one of the columns (a dilaog has to be appear).
Now, the user can click the cell and the dialog appears, but the user has to know that, otherwise he does not know how to change the content.
That's why I'd like to insert a button at the end of this column, similar to dialogs of MS Visual Studio for example (see attachement).
The QTreeWidgetItem has only a setICon() method, I need something like a setWidget() method.
What would be an easy way to bring that button into the item?