Sorry, I tried as you say, but does not work.
#include <QApplication>
#include <QFileDialog>
int main( int argc, char **argv ) {
dialog.
setFilter(QDir::Files);
//<--------------------------All files except executable files.??? dialog.exec();
return 0;
}
#include <QApplication>
#include <QFileDialog>
int main( int argc, char **argv ) {
QApplication app( argc, argv );
QFileDialog dialog(0);
dialog.setFileMode(QFileDialog::ExistingFile);
dialog.setFilter(QDir::Files); //<--------------------------All files except executable files.???
dialog.exec();
return 0;
}
To copy to clipboard, switch view to plain text mode
Bookmarks