Open probonopd opened 2 months ago
Key question:
Can this be achieved properly by using a QListView
with a QStyledItemDelegate
and a custom model, or would we need to subclass or replace QListView
?
We don't want the rigid grid-based layout of QListView, but our custom way of aligning the icons; not always in a grid that has rows and columns at all.
Still looking for a straightforward way in Qt to freely position items at x, y coordinates rather than in a grid of items.
The Mac could do this from the beginning in 1984. Even Windows 3.1 could do it - you could freely move an icon anywhere and it would stay at that exact location, even if you quit and restarted Windows.
Somewhere along the way, we lost this capability. The QListView icon view can't seem to do it, at least not out of the box?
The following allows us to draw items at defined locations:
However,
is totally messed up.
How can this be fixed?