https://bugs.kde.org/show_bug.cgi?id=467868
shenlebantongying <shenlebantongy...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |shenlebantongy...@gmail.com --- Comment #1 from shenlebantongying <shenlebantongy...@gmail.com> --- > 2. To test this, type: > kdialog --getopenfilename ~/Downloads "*.jpg" The related code for wildcard match still exists, and this syntax still works: kdialog --getopenfilename ~/Downloads "Some Strings (*.jpg)" This is KDE's file dialog's bug. --- It seems plasma's file dialog doesn't support simple filter like "*.jpg" https://doc.qt.io/qt-6.4/qfiledialog.html#setNameFilter Compile code below with Qt5 will reproduce this bug ``` #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(); } ``` -- You are receiving this mail because: You are watching all bug changes.