QFileSystemModel and QTableView get more information about files
-
Hi and welcome to devnet,
Take a look at QFileSystemModel::fileInfo.
-
@SGaist said in QFileSystemModel and QTableView get more information about files:
Hi and welcome to devnet,
Take a look at QFileSystemModel::fileInfo.
This function will just return information about single file, my request was how to add additional columns with additional information about files.
Generally i need something like this
-
@nammidd said in QFileSystemModel and QTableView get more information about files:
This function will just return information about single file, my request was how to add additional columns with additional information about files.
To be clear, although this is information about one file at a time, this is how you get the information for each file to put in the table view. There is no one call to get "all information about all files", the information is stored against each file individually. Then you create your
QTableView
to have columns for each desired attribute inQFileInfo
, and you end up with what you are looking for.