开发者

PyQt ListView with groups

开发者 https://www.devze.com 2023-01-16 01:09 出处:网络
How can i create connection groups inside a QListView with PyQt. The group name should not be selectable开发者_C百科.

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.

0

精彩评论

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