开发者

Getting the ID of a double clicked item

开发者 https://www.devze.com 2023-03-02 10:26 出处:网络
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.

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

精彩评论

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