Getting the ID of a double clicked item
Is it possible to get the name of a double clicked item i.e tables listed in QT开发者_高级运维ableView by their table names?.
Yes there is.
The QTableView emits the doubleClicked( const QModelIndex &index )
signal and with that you can get the name using the data( index, role)
method.
精彩评论