grabalon
27th July 2010, 18:01
Hey,
I'm using Qt Creator to develop my app, and have a dialog containing a QTreeWidget. I populate it by querying a local database for record names. I can give the code for populating it, but I'm pretty sure I don't set any properties of the TreeWidget from there. Suffice it to say that I have Parents and Children being populated.
I would like to allow my users to change parent names, but I can't get the Tree to accept a double click as an edit. Instead it treats double click as "Expand Children". I have the following call in the constructor of the dialog
ui.flightSearchTree->setEditTriggers(QAbstractItemView::DoubleClicked);
but to no avail.
Any help is appreciated.:confused::confused:
I'm using Qt Creator to develop my app, and have a dialog containing a QTreeWidget. I populate it by querying a local database for record names. I can give the code for populating it, but I'm pretty sure I don't set any properties of the TreeWidget from there. Suffice it to say that I have Parents and Children being populated.
I would like to allow my users to change parent names, but I can't get the Tree to accept a double click as an edit. Instead it treats double click as "Expand Children". I have the following call in the constructor of the dialog
ui.flightSearchTree->setEditTriggers(QAbstractItemView::DoubleClicked);
but to no avail.
Any help is appreciated.:confused::confused: