I wish to only display the executable file in QFileDialog.Which parameter should be set in setFileMode().
I wish to only display the executable file in QFileDialog.Which parameter should be set in setFileMode().
for Win use void QFileDialog::setFilters ( const QStringList & filters )
a life without programming is like an empty bottle![]()
--------------------------------------------------------------------------------
I wish to only display the executable file(for linux)
I'm afraid this is not possible with the existent QFileDialog.
What you could do, though, is to construct a custom dialog showing a QDirModel in a QTreeView. Then you just apply QDir::Executable filter for the dir model.
Bookmarks