<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello again,</p>
<p>We just discovered (thanks Benjamin!) that the incompatibility
starts when using newer Qt version.</p>
<p>When using qt 5.12 the plugins are visible in the designer: mamba
create -y -n qt512 qt=5.12<br>
<br>
When using qt 5.15 the plugins are <b>not</b> visible: mamba
create -y -n qt515 qt=5.15</p>
<p>Do you have any hint on where to report this issue or how to
solve it?</p>
<p>Thanks,</p>
<p>Zibi<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 9/11/23 13:30, Zbigniew Reszela
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:adc458ba-324d-f463-6e4f-c58953d2a14a@cells.es">Dear all,
<br>
<br>
I have experienced problems loading python plugins into the Qt
Designer.
<br>
<br>
I follow this guide on developing custom python plugins:
<a class="moz-txt-link-freetext" href="https://www.riverbankcomputing.com/static/Docs/PyQt5/designer.html#writing-qt-designer-plugins">https://www.riverbankcomputing.com/static/Docs/PyQt5/designer.html#writing-qt-designer-plugins</a>.<br>
<br>
I can not even load the example plugins that comes with the PyQt5
source package.
<br>
<br>
I use the latest PyQt5 and Qt5 packages available on conda-forge:
<br>
<br>
OS: Debian 11
<br>
<br>
python (conda) = 3.11.5
<br>
<br>
Qt5 = 5.15.8
<br>
<br>
PyQt5 = 5.15.9
<br>
<br>
I execute it in the following way:
<br>
<br>
╰─>$ PYTHONPATH=/PyQt5-5.15.9/examples/designer/plugins/widgets
PYQTDESIGNERPATH=/PyQt5-5.15.9/examples/designer/plugins/python/
designer
<br>
<br>
Do you know what could be wrong?
<br>
<br>
Do you know how could I debug this problem?
<br>
<br>
I don't see that the plugins are even attempted to be loaded, no
__pycache__ dir is generated with pyc files.
<br>
<br>
I was thinking on adding some prints in the
/PyQt5-5.15.9/designer/pluginloader.cpp, compiling and somehow
linking it with the designer. Any hint on that?
<br>
<br>
Note, when I use some older versions of PyQt5 and Qt5 from some
older conda environment I prepared in the past it works correctly
and I can see the plugins loaded in the designer, the same using
the Debian 11 packages:
<br>
<br>
OS: Debian 11
<br>
<br>
python (conda) = 3.9.2
<br>
<br>
Qt5 = 5.12.9
<br>
<br>
PyQt5 = 5.12.3
<br>
<br>
Here I can see __pycache__ dir with pyc files.
<br>
<br>
Many thanks in advance for any kind of help,
<br>
<br>
Regards,
<br>
<br>
Zibi
<br>
<br>
</blockquote>
</body>
</html>