开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜