Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning about invalid parameter during file load / save dialog under Windows #208

Closed
chipmuenk opened this issue Jan 20, 2022 · 0 comments
Closed
Labels

Comments

@chipmuenk
Copy link
Owner

chipmuenk commented Jan 20, 2022

When trying to save or load coefficients under Windows, the following (or a similar) warning message is printed to the console:

QWindowsNativeFileDialogBase::selectNameFilter: Invalid parameter '*.csv' not found in 'Comma / Tab Separated Values (*.csv), Matlab-Workspace (*.mat), Binary Numpy Array (*.npy), Zipped Binary Numpy Array (*.npz)'.

It is still possible to load / save the coefficients correctly.

Qt version is 5.15.2, pyQt version is 5.15.6. The behaviour is described in QTBUG-77211 "Warning on nameFilters change in QML FileDialog" so it is probably a Qt bug.

https://stackoverflow.com/questions/27994017/python-pyqt-pyside-setnamefilters-in-qfiledialog-does-not-work suggests avoiding the native Windows file dialog.

The warning is issued because the file filter that is passed to the QFileDialog is not a part of the file filter list.

Fixed in develop branch, will be merged in next branch.

@chipmuenk chipmuenk changed the title Error message when trying to save coefficients as *.csv file Warning about invalid parameter during file load / save dialog Feb 7, 2022
@chipmuenk chipmuenk changed the title Warning about invalid parameter during file load / save dialog Warning about invalid parameter during file load / save dialog under Windows Feb 7, 2022
@chipmuenk chipmuenk added the bug label Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant