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

QSettings::value: Empty key passed messages #854

Open
TomFryers opened this issue Feb 11, 2022 · 10 comments · Fixed by #951
Open

QSettings::value: Empty key passed messages #854

TomFryers opened this issue Feb 11, 2022 · 10 comments · Fixed by #951

Comments

@TomFryers
Copy link
Contributor

TomFryers commented Feb 11, 2022

Specification

  • pywebview version: 3.5
  • operating system: Manjaro Linux KDE
  • web renderer: Qt

Description

Running this simple example

import webview


class App:
    pass


webview.start(lambda _: None, webview.create_window("Test", html="", js_api=App()))

outputs

QSettings::value: Empty key passed
QSettings::value: Empty key passed

to the console. This is not a huge problem, but it’s a bit of noise.

Practicalities

  • NO I am willing to work on this issue myself.

  • NO I am prepared to support this issue financially.

@TomFryers TomFryers changed the title QSettings::value: Empty key passed QSettings::value: Empty key passed messages Feb 11, 2022
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Mar 14, 2022
@r0x0r
Copy link
Owner

r0x0r commented Mar 14, 2022

Sorry for the late response. I could not reproduce this with QT 5.15.2 and latest master.

@TomFryers
Copy link
Contributor Author

Neither can I, now, it seems! I had to reinstall my system, so it could be that, or an update or something.

@TomFryers
Copy link
Contributor Author

The messages have returned. I've done some debugging and discovered that they are caused by calling QApplication([]) on line 659 in qt.py. The examples in the PySide2 docs always pass QApplication sys.argv, so I think it doesn't like being given an empty list.

@TomFryers TomFryers reopened this Aug 19, 2022
@TomFryers
Copy link
Contributor Author

I tried with the latest master and 3.6.2. The messages seem only to appear with QT_API=pyqt5 (which is the default). I'm using Arch Linux, KDE, Wayland.

@github-actions github-actions bot removed the stale label Aug 20, 2022
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@TomFryers
Copy link
Contributor Author

The issue still exists, bot.

@caeserlettuce
Copy link

Hi! I'm also getting this issue.

[pywebview] Using Qt 5.15.9
QSettings::value: Empty key passed
QSettings::value: Empty key passed

@buhtz
Copy link

buhtz commented Dec 2, 2024

Please re-open and make this bot shut up please.
We are humans so please try to treat us as such.

@r0x0r
Copy link
Owner

r0x0r commented Dec 3, 2024

I will reopen this. Feel free to submit a fix.

@r0x0r r0x0r reopened this Dec 3, 2024
@github-actions github-actions bot removed the stale label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants