Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.2
-
None
Description
I created a file dialog as follows:
QFileDialog dialog(parent, title, dir); QStringList filters; for ( const auto& baf : QImageReader::supportedMimeTypes() ) filters.push_back(QString(baf)); dialog.setMimeTypeFilters(filters); dialog.setAcceptMode(QFileDialog::AcceptOpen); dialog.setFileMode(QFileDialog::ExistingFile);
It works fine on Windows/Linux but on Mac has a weird effect.
There it seems the actual filter is offset compared what the dropdown shows.
I attached some screenshots to illustrate:
The png file isn't active when the PNG filter is selected, but it becomes enabled when the SVG filter is enabled. It seems to be a trend for all filters: that they show the files from the filter above them in the drop down.