Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QListview truncates row when scrollbar added
Moschops last edited by
I have a QListView with a single row. It gets some items put in it. They have pictures. When the number of items in the QListView is enough that they don't all fit, a scrollbar appears at the bottom of the QListView so the user can scroll to the right to see all the items. This is good.
What is bad is that the scrollbar takes up space, and the items are truncated; the top and bottom of the picture is clipped. How do I stop is doing this? I am happy for the QListView to resize, or for the items to be shrunk. Just not clip the items.
Can you reproduce this with a minimal compilable example ?