You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
QFileDialog::setMimeTypeFilters() sets the mimetype filter of a file dialog in a Qt code.
Expected Behavior
The method should work with LXQt (native) file dialog.
Current Behavior
But it doesn't work. Not only the filter is shown with an extra parenthesis at the end but also the dialog filters out everything (except for folders).
Possible Solution
Should read the file dialog code again.
System Information
Latest git LXQt.
The text was updated successfully, but these errors were encountered:
Fixes#342
(1) The problem was a just typo, which is corrected.
(2) I also took the liberty of replacing `QRegExp` with `QRegularExpression` because the former is deprecated -- I know it's a bad practice to have two changes in one PR but I might never do it if not here.
NOTE: The only way of testing this is using `QFileDialog::setMimeTypeFilters()` in a code. It passed my tests though.
Fixes#342
(1) The problem was a just typo, which is corrected.
(2) I also took the liberty of replacing `QRegExp` with `QRegularExpression` because the former is deprecated -- I know it's a bad practice to have two changes in one PR but I might never do it if not here.
NOTE: The only way of testing this is using `QFileDialog::setMimeTypeFilters()` in a code. It passed my tests though.
QFileDialog::setMimeTypeFilters()
sets the mimetype filter of a file dialog in a Qt code.Expected Behavior
The method should work with LXQt (native) file dialog.
Current Behavior
But it doesn't work. Not only the filter is shown with an extra parenthesis at the end but also the dialog filters out everything (except for folders).
Possible Solution
Should read the file dialog code again.
System Information
Latest git LXQt.
The text was updated successfully, but these errors were encountered: