Hello, All
The QListView widget have enabled isWrapping property, therefore it widget have several columns. How to get count of items per column?
Thanks
Hello, All
The QListView widget have enabled isWrapping property, therefore it widget have several columns. How to get count of items per column?
Thanks
isWrapping doesn't change columns nor rows. In general ask the underlaying model for any information.
Do you know how to do it? or it's your guess?In general ask the underlaying model for any information.
P.S.
I have read docs about QListView, QAbstractItemView, QAbstractItemModel, etc (+ read sources) and didn't found a way how to get count of items per column.
Let me think a minute. Ehm, no, I know it
The problem is, what do you mean by "items per column"? Do you whant the row count? You can also have a look at the header to see, how many columns are actually shown.I have read docs about QListView, QAbstractItemView, QAbstractItemModel, etc (+ read sources) and didn't found a way how to get count of items per column.
Bookmarks