Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

How to setSortRole for QTreeWidget ?

$
0
0
I have QTreeWidget based class and need to do sorting by Qt::UserRole. How can I do this ? I know that QStandartItemModel has such method and treeWidget has model() method which return model, but it’s QAbstractItemModel type which has no setSortRole method.

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>