I'm trying to get the available space in a QListWidget in IconMode. When I call viewport().size(), it returns the the whole view including the scrollbar zone, which isn't actually usable. So I compute widget.size() - 2*frameWidth() - scrollbar.size() but with some styles there's a remaining space that I don't know how to measure...
# style widget frame scrollbar viewport ???
Bespin 256 0 17 237 2
CDE 256 1 13 239 2
Cleanlooks 256 2 15 237 0
GTK+ 256 1 18 236 0
Motif 256 2 16 232 4
Oxygen 256 3 17 231 2
Phase 256 2 16 236 0
Plastique 256 2 16 236 0
Polyester 256 1 16 238 0
qtc_klearlooks 256 1 15 239 0
QtCurve 256 2 15 237 0
Skulpture 256 2 17 235 0
Windows 256 2 16 236 0
# style widget frame scrollbar viewport ???
Bespin 256 0 17 237 2
CDE 256 1 13 239 2
Cleanlooks 256 2 15 237 0
GTK+ 256 1 18 236 0
Motif 256 2 16 232 4
Oxygen 256 3 17 231 2
Phase 256 2 16 236 0
Plastique 256 2 16 236 0
Polyester 256 1 16 238 0
qtc_klearlooks 256 1 15 239 0
QtCurve 256 2 15 237 0
Skulpture 256 2 17 235 0
Windows 256 2 16 236 0
To copy to clipboard, switch view to plain text mode
Bookmarks