This question is more about the Qt framework knowledge than coding problem.
I am wondering if there exists in the Qt Framework a container which displays a list view of expandable/collapsable items. The items are much more complex than simple QLabel
s.
To be more precise, I need a list of custom widgets.
Each widget has a QHBoxLayout
(to make each item fit in a "line") which contains inner widgets including an expanding/collapsing toggle button (at the first/left position of the layout).
When the expanding/collapsing button is switched on, I want to see a container panel appear below and showing more detailed information (another complex widget).
Obviously, when the expanding/collapsing button is switched off, this additional panel must hide.
My question is, does such a gui design structure exist in the Qt framework or not ?
I could not find such an object in the Qt documentation but I may have miss it since I don't really know by what name it could be called.
I could probably do this with more or less tricky workarounds as shown here for example.
But I want to be sure that I will not implement a class that may already exist in the Qt framework since this kind of container are quite common in many applications.
I would be very grateful if someone knowledgeable about the Qt framework could enlighten me about it.