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

TypeError: setFontSize(self, QWebEngineSettings.FontSize, int): argument 2 has unexpected type 'float' #1521

Closed
jeanas opened this issue Feb 14, 2023 · 1 comment

Comments

@jeanas
Copy link
Member

jeanas commented Feb 14, 2023

I got this once on startup:

$ ./frescobaldi
QSocketNotifier: Can only be used with threads started with QThread
Traceback (most recent call last):
  File "/home/jean/repos/frescobaldi/frescobaldi_app/panel.py", line 64, in sizeHint
    self.widget()
  File "/home/jean/repos/frescobaldi/frescobaldi_app/panel.py", line 71, in widget
    w = self.createWidget()
        ^^^^^^^^^^^^^^^^^^^
  File "/home/jean/repos/frescobaldi/frescobaldi_app/docbrowser/__init__.py", line 56, in createWidget
    return browser.Browser(self)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/jean/repos/frescobaldi/frescobaldi_app/docbrowser/browser.py", line 86, in __init__
    self.readSettings()
  File "/home/jean/repos/frescobaldi/frescobaldi_app/docbrowser/browser.py", line 102, in readSettings
    ws.setFontSize(QWebEngineSettings.DefaultFixedFontSize, fixed.pointSizeF() * 96 / 72)
TypeError: setFontSize(self, QWebEngineSettings.FontSize, int): argument 2 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/jean/repos/frescobaldi/frescobaldi_app/panel.py", line 64, in sizeHint
    self.widget()
  File "/home/jean/repos/frescobaldi/frescobaldi_app/panel.py", line 71, in widget
    w = self.createWidget()
        ^^^^^^^^^^^^^^^^^^^
  File "/home/jean/repos/frescobaldi/frescobaldi_app/docbrowser/__init__.py", line 56, in createWidget
    return browser.Browser(self)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/jean/repos/frescobaldi/frescobaldi_app/docbrowser/browser.py", line 86, in __init__
    self.readSettings()
  File "/home/jean/repos/frescobaldi/frescobaldi_app/docbrowser/browser.py", line 102, in readSettings
    ws.setFontSize(QWebEngineSettings.DefaultFixedFontSize, fixed.pointSizeF() * 96 / 72)
TypeError: setFontSize(self, QWebEngineSettings.FontSize, int): argument 2 has unexpected type 'float'
@jeanas
Copy link
Member Author

jeanas commented Feb 14, 2023

Never mind, sorry. I had the branch from #1375 checked out. It hadn't been updated with master and doesn't have all the implicit conversion fixes.

@jeanas jeanas closed this as not planned Won't fix, can't repro, duplicate, stale Feb 14, 2023
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

No branches or pull requests

1 participant