The title explains it all. I can't find any function to count my QListView's indexes. Not even for my QFileSystemModel's files amount.How can I do that, am I missing something?
The title explains it all. I can't find any function to count my QListView's indexes. Not even for my QFileSystemModel's files amount.How can I do that, am I missing something?
Obviously yes Have a look at QFileSystemModel::rowCount().
How are you calling rowCount ? can we see the code ?
and what view and model are you using ?
Qt Code:
// ui->QListView QFileSystemModel alarmDirModel; alarmDirModel.rowCount()To copy to clipboard, switch view to plain text mode
double post- my bad Internet connections fault
Last edited by been_1990; 18th December 2009 at 00:57.
Bookmarks