Hi!

I'm using the property browser from Qt Solution, it uses the model/view architecture, so it construct the widget when the editing is necessary and destroy it after editing.

In my software when the editing is finished (when the control loses the focus by a mouse click or keyboard) I check the modified value to know if it is valid. When the value is not valid a message box opens with a warning, when the message box is closed I need to set the focus back for editing. The problem is that now the control was already or will be destroyed and set the focus to the widget will not work.

The property browser uses a QTreeWidget to handle with all that. Does anybody know how to set the focus and opens it to edit of an QTreeWidget's item?
How can I do that?

Thank you in advance.