[Interest] margins in QListView

Alexander Semke alexander.semke at web.de
Wed Jul 1 08:28:28 CEST 2020


Hi,

I need to fix the size of a QListView to three items aligned vertically as on
this image:
https://imgur.com/a/lAMOHEB

For this I need to know the size of the margins around the items. The margins
of the view port and spacing() return zero. I think this is controled by the
style options by I don't see any enum values in QStyle which I could use for
these margins.

Is there a way to detemine this?

--
Alexander




More information about the Interest mailing list