-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.9.2
-
None
-
Windows 10/11
When running the code below for Qt 6.9.2 under Windows 10/11, the non-native file dialog fails to show the icons for some of the directories it lists. On the two systems I tested, it did not show icon for the "C:/Users" directory and others.
When running this code compiled for Qt 6.9.1, the file dialogs do show all the directory icons.
Code below is also attached.
#include <QString>
#include <QFileDialog>
#include <QApplication>
int main(int argc, char *argv[])
{ // initial directory static const QString dir
;
QApplication app(argc,argv);
// non-native file dialog at root of system drive
QFileDialog filedialog(nullptr,"test",dir);
filedialog.setOption(QFileDialog::DontUseNativeDialog);
filedialog.setViewMode(QFileDialog::Detail);
// note that the "Users" directory does not have an icon (unlike the other ones).
// also within the "Users" directory, the directory for the current user also
// does not have an icon.
// besides these directories, there are more directories missing their icon
// (also on other drives). it seems to only affect directories, not drives/files.
filedialog.show();
return QApplication::exec();
}