Help to have a justify grid of items
-
Hi,
I'm fairly new to QT and I am developping a grid of image. Right now, I'm using widget I'll learn QML for later. I'm using widget manly to learn.
For now, I'm using a QListWidget in IconMode with a custom delegate : when hovered, the images have some information about them. The problem is that the items aren't justify and QSS doesnt work a all to fix it. I'm not using a qtablewidget because the column number is determine by the list size
I don't use a grid layout with qwidgets because in the long run, the grid can get 1000+ items, and people say it's not the way to do this.
Here some screen : What I Have now : notice the space on the right VS How I want it to be (Dolphin KDE). Being able to resize the item depend on the list size would be great but I dont find a way to do it in delegate (it's not important for now tbh).
Since I'm new, I know there are a lot of thing to learn. Did I use the correct widget ? Do you have any recommendations and some pointers ? Like using QListView or QTableView with QListItemModel or QTableItemModel. Or using QGraphicsView.