PDA

View Full Version : persistentEditor in QTreeWidget



adhit
21st April 2007, 20:35
Hello!

My application works with QTreeWidget. The new element adds to the tree by pressing a button. How can I put keyboard cursor into persistentEditor for the new element?

For example:

void XMLTree::buttonAddPushed()
{
QTreeWidgetItem *item = new QTreeWidgetItem;
openPersistentEditor( item, 0 );
// ??? How can I put keyboard cursor in this editor ???
}

wysota
21st April 2007, 22:16
Call edit() on the item.

adhit
22nd April 2007, 09:39
wysota, thank you!
That's real work!!!