<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I also experienced this when trying qdarktheme (<a href="https://github.com/5yutan5/PyQtDarkTheme">https://github.com/5yutan5/PyQtDarkTheme</a>), running on python 3.11 64 bit, Windows 10, PyQt6-6.5.3.dev2309101249-cp37-abi3-win_amd64.whl</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">TypeError: arguments did not match any overloaded call:<br> QProxyStyle(style: typing.Optional[QStyle] = None): not enough arguments<br> QProxyStyle(key: Optional[str]): not enough arguments</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Probably because key is a reference</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">QProxyStyle::QProxyStyle(const QString &key)</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">To fix it I have to pass None as the parameter. So maybe None match a null pointer but it does not match a null? reference. Can a reference even be null?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 21, 2023 at 2:52 PM Florian Bruhin <<a href="mailto:me@the-compiler.org">me@the-compiler.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey,<br>
<br>
With CPython 3.12.0rc1 and PyQt 6.5.2 on Fedora 39 Beta 1.1, it looks<br>
like it's impossible to create a QProxyStyle with no arguments.<br>
<br>
A "docker run -it fedora:39" followed by:<br>
<br>
dnf install python-pyqt6<br>
python3 -c 'from PyQt6.QtWidgets import QProxyStyle; s = QProxyStyle()'<br>
<br>
Results in:<br>
<br>
TypeError: arguments did not match any overloaded call:<br>
QProxyStyle(style: typing.Optional[QStyle] = None): not enough arguments<br>
QProxyStyle(key: Optional[str]): not enough arguments<br>
<br>
Using QProxyStyle(None) seems to work as a workaround.<br>
<br>
For some reason, I can *not* reproduce this right now on Archlinux with<br>
Python 3.12.0rc2 (but Python 3.12.0rc3 on Fedora also reproduces it,<br>
*and* I've seen this exact error on Archlinux earlier this week, so not<br>
sure yet what triggers it).<br>
<br>
Florian<br>
</blockquote></div>