Can some please show me how to code the event to determine if the user has clicked off of a row in a tableView ?
Can some please show me how to code the event to determine if the user has clicked off of a row in a tableView ?
You can do this by implementing the mouse click event.
Maybe you might need to install an event filter for the scroll area, but I'm not sure here.
I would need for both. What I am trying to accomplish is to save the record once the users exits the row, either update or insert if new.
Are the QAbstractItemView::currentChanged() and/or QAbstractItemView::selectionChanged() signals what you are looking for?
Last edited by ChrisW67; 23rd August 2010 at 02:04. Reason: Self imposed grammar nazi
Whichever one tells me that the row is about to change and allow me to save the current row data before actually leaving the row.
Have you read the docs for those two signals and thought about how you can use them? Seems that currentChanged() is what you want.
Bookmarks