https://bugs.kde.org/show_bug.cgi?id=476525

            Bug ID: 476525
           Summary: QFileDialog::filterSelected emitted with wrong value
                    when changing mime filter
    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: nicolas.fe...@gmx.de
  Target Milestone: ---

Consider the following code

QFileDialog dlg;
dlg.setMimeTypeFilters({"text/plain", "image/png"});
QObject::connect(&dlg, &QFileDialog::filterSelected, [](const QString &name){
  qWarning() << "changed" << name;
});

Changing the filter in the file dialog UI emits the filterSelected signal.

However when selecting e.g. the PNG filter the name parameter is "image/png",
not a QFileDialog filter expression.

Running with another platformtheme, like gtk3, or the builtin file dialog gives
"PNG image (*.png)"

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to