https://bugs.kde.org/show_bug.cgi?id=470893
Bug ID: 470893 Summary: KDE's filedialog ignores unnamed QFileDialog NameFilter Classification: Plasma Product: plasma-integration Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: plasma-b...@kde.org Reporter: shenlebantongy...@gmail.com Target Milestone: --- SUMMARY QFileDialog has an unnamed name filter, which KDE's file dialog silently ignores. https://doc.qt.io/qt-6/qfiledialog.html#setNameFilter Found during this kialog's bug https://bugs.kde.org/show_bug.cgi?id=467868 STEPS TO REPRODUCE Run this code: ``` #include <QApplication> #include <QFileDialog> int main(int argc, char *argv[]) { QApplication a(argc, argv); // Doesn't work on KDE (only have problem on KDE) auto *dlg1 = new QFileDialog(); dlg1->setNameFilter("*.txt"); dlg1->exec(); // Works auto *dlg2 = new QFileDialog(); dlg2->setNameFilter("Force to work with KDE (*.txt)"); dlg2->exec(); return QApplication::exec(); } ``` OBSERVED RESULT The dlg1's name filter is ignored in KDE :( EXPECTED RESULT It shouldn't SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.106.0 Qt Version: 5.15.9 Kernel Version: 6.3.5-arch1-1 (64-bit) -- You are receiving this mail because: You are watching all bug changes.