WTableView and doubleclick
Added by Vasiliy Vasiliy about 10 years ago
Hello everyone.
I have made child class "mytab" from WTableView.
Now i want to catch dblclick event with "mytab->doubleClicked()" and to do somthing. I can connect to some function, but i don't understand how i can identify cell and row of "mytab" where event "doubleclick" was happaned.
I don't want to edit cell value, I want to open another window.
Replies (1)
RE: WTableView and doubleclick - Added by Bruce Toll about 10 years ago
Hey,
You may find the TreeViewDragDrop.C example helpful. The editFile method shows how a WModelIndex is provided on double click. The example also demonstrates how to obtain the row and column from this WModelIndex.
Bruce