PDA

View Full Version : treemodel double click should open getOpenFileName instead of edit the field, how?



qt_gotcha
21st December 2010, 16:46
I have a treemodel implemented where I can edit the fields, basically copied the Qt example. How can I call getOpenFileName when I double click on a field, instead of editing the field? I don't know where to look?
thanks.

Lykurg
21st December 2010, 18:24
look for edit triggers and signals. Disable the first and with the second "call" a custom slot where you call getOpenFileName.

qt_gotcha
23rd December 2010, 08:53
thanks, this worked. I was attempting to change something in the model instead of in the view!