PDA

View Full Version : How to get the content size of QAbstractItemView



moti.lahiani
23rd May 2010, 09:20
Hello all

I use the QTableView/QListView with model
the view show the local filing system like the Dir View Example
each index include icon of the file and the file name. (icon+name = content)
what i need is to get the size of the content of specific index (not the visualRect of index)
how can i get this size???

thanks alot

tbscope
23rd May 2010, 09:26
qint64 QFileSystemModel::size ( const QModelIndex & index ) const

moti.lahiani
23rd May 2010, 10:14
Thanks BUT...
i'm not using QFileSystemModel i use my Model implementation.

tbscope
23rd May 2010, 10:20
Well, then provide a similar function.
You will need to explain in detail what you have now, what you want, what your problems are and if possible post some code.
Otherwise it is impossible, at least for me, to give you a good answer.