List of custom widgets in QT
-
Hello, I'm rather new to QT. I'm working on a small personal project for which I need to make a list of entries that each should contain certain information. Something akin to this. The problem I'm having is that the listboxes are very restrictive design-wise and the vertical layout doesn't seem to allow for stacking widgets one after another in a list-like manner with a scrollbar, rather it evenly spaces the widgets out to completely fill out the vertical layout. If any of you are familiar with Windows Forms I'm looking for something closer to the FlowLayoutPanel.
Is there something obvious I'm missing here that would allow me to accomplish something like the image linked above?
Thank you for your advice.
-
Hi and welcome to devnet,
This looks mainly like a QListView/Widget with a custom QStyledItemDelegate.
-
Hi
There is also QScrollArea that would allow this,
however, it will be heavy if many items and the
List + Delegate is really the preferred way to go even it
do not allow any Design time setup and is mostly just code.