Solved Nested images list in QWidget.
-
Hello there!
In my app I have list of icons from which I can select interesting ones via QListWidget. I want to make some nested elements - some icons to represent group of images, which should expand and show nested icons by click, and some simple ones. What is the best way to do that? I didn't find an info QListWidget can provide this functionality. -
Hi,
That's because it does not provide such a functionality.
From the looks of it, you will need a custom QStyledItemDelegate to draw your groups.
You will likely need to move to QListView and a custom model in order to store the grouping information somewhere.
-
Hi,
That's because it does not provide such a functionality.
From the looks of it, you will need a custom QStyledItemDelegate to draw your groups.
You will likely need to move to QListView and a custom model in order to store the grouping information somewhere.
-
@SGaist thanks alot!