0

I have recently installed on my cygwin platform the following packages using apt-cyg:

apt-cyg install python-pyqt5

apt-cyg install qt5-devel-tools

The latter command installed Qt Designer as an executable (designer-qt5).

PyQt5 examples works fine as well as pyuic5.

However, when I download a custom PyQt5 plugin ledplugin.py from here, this PyQt5 plugin never loads. I am also setting the environemnt variable:

export PYQTDESIGNERPATH=.

Lastly, I am using python 2.7 not python 3.x.

Has anybody else encountered this problem? Any solutions?

Thank you in advance.

EDIT (2018/12/18): I have just tried the pyqt plugins for qt4 (with python 2.7) and it works. My suspicion is that the libpyqt5.dll in /usr/lib/qt5/plugins/designer does not work properly as libpyqt4.dll in /usr/lib/qt4/plugins/designer does. Any ideas how to proceed from here?

Community
  • 1
  • 1
Leptoceratops
  • 177
  • 2
  • 12
  • You need to show some code how you you are using and any error message. – matzeri Dec 15 '18 at 18:56
  • The plugin is for python3 as first line is `#!/usr/bin/python3` No surprise does not work with python2 – matzeri Dec 15 '18 at 19:01
  • I have installed `python3-pyqt5` and `python3-sip` and it still does not work. I also changed `python3` to `python2` and it still does not work. I do not think there is any python3-specific syntax inside the plugin. – Leptoceratops Dec 16 '18 at 20:38
  • "does not work" is not very descriptive. What are you doing ? – matzeri Dec 16 '18 at 22:25
  • "does not work" means I launch `designer-qt5` and the PyQt plugin does not show up in the widget area on the left (no error messages either). I also tried it with more PyQt plugins and widgets downloaded from the [designer plugin examples](https://github.com/pyqt/examples/tree/master/designer/plugins). – Leptoceratops Dec 17 '18 at 00:42

0 Answers0