PyQt ListView with groups
How can i create connection groups inside a QListView with PyQt.
The group name should not be selectable开发者_C百科.
Example: http://www.shrani.si/f/T/bB/gSpSsYt/connectionlist.jpg :)
There are basically two approaches: add items that are the "section headings" that can be set disabled (see setFlags
), or use a QTreeView
.
精彩评论