Giter VIP home page Giter VIP logo

pyqt5's Introduction

pyqt5

This is a personal mirror of the Pyqt5 project, feel free to use it in the respect of the project licence.

5.10.1

for pyqtdeploy use pip

pip3 install pyqtdeploy

Change

SIP

  • SIP v4.19.8 has been released. This is a minor bug-fix release.

PyQt5

5.10

  • The highlights of the release are support for Qt v5.10.0 and the new QtNetworkAuth and Qt3DAnimation modules.
  • Support for Qt v5.10

5.10.1

  • Added support for Qt v5.10.1.
  • Added the missing qmlClearTypeRegistrations() to the QtQml module.
  • Added the --disable-feature option to configure.py.

pyqt5's People

Contributors

axel-erfurt avatar baoboa avatar d-chambers avatar dluciv avatar isidentical avatar mcodez avatar rknuus avatar sigill avatar spacha avatar thopiekar avatar victoriatomzik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyqt5's Issues

build error in qpyqml_register_type.cpp

I'm building against Qt 5.11.1, using source version 5.11.2 from https://riverbankcomputing.com/software/pyqt/download5/ - I have also tried the current snapshot of 5.11.3 though, with the same results.

I receive errors when building qpyqml_register_type.cpp (below). I'm not doing much C++ these days but I think I understand what "template argument 2 is invalid" means - though I have no clue how and why it applies here. Any ideas what might cause this?

g++ -c -pipe -O2 -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DPy_LIMITED_API=0x03040000 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NAMESPACE=qt5 -I. -I. -I../../../qutebrowser/include/python3.6m -isystem /usr/include/python3.6m -I../qpy/QtQml -I/usr/local/Qt-5.11.1/include -I/usr/local/Qt-5.11.1/include/QtGui -I/usr/local/Qt-5.11.1/include/QtQml -I/usr/local/Qt-5.11.1/include/QtNetwork -I/usr/local/Qt-5.11.1/include/QtCore -I. -isystem /usr/include/libdrm -I/usr/local/Qt-5.11.1/mkspecs/linux-g++ -o qpyqml_register_type.o ../qpy/QtQml/qpyqml_register_type.cpp
../qpy/QtQml/qpyqml_register_type.cpp: In function ‘qt5::QQmlPrivate::RegisterType* init_type(PyTypeObject*, bool, int, PyTypeObject*)’:
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:301:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(0);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:302:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(1);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:303:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(2);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:304:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(3);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:305:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(4);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:306:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(5);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:307:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(6);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:308:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(7);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:309:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(8);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:310:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(9);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:311:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(10);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:312:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(11);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:313:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(12);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:314:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(13);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:315:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(14);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:316:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(15);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:317:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(16);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:318:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(17);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:319:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(18);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:320:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(19);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:321:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(20);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:322:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(21);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:323:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(22);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:324:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(23);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:325:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(24);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:326:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(25);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:327:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(26);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:328:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(27);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:329:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(28);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:330:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(29);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:331:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(30);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:332:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(31);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:333:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(32);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:334:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(33);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:335:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(34);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:336:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(35);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:337:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(36);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:338:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(37);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:339:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(38);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:340:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(39);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:341:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(40);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:342:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(41);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:343:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(42);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:344:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(43);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:345:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(44);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:346:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(45);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:347:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(46);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:348:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(47);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:349:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(48);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:350:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(49);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:351:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(50);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:352:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(51);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:353:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(52);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:354:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(53);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:355:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(54);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:356:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(55);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:357:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(56);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:358:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(57);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:359:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(58);
         ^~~~~~~~~~~~~~~~
../qpy/QtQml/qpyqml_register_type.cpp:136:112: error: template argument 2 is invalid
         rt->valueInterceptorCast = QQmlPrivate::StaticCastSelector<QPyQmlObject##n,QQmlPropertyValueInterceptor>::cast(); \
                                                                                                                ^
../qpy/QtQml/qpyqml_register_type.cpp:360:9: note: in expansion of macro ‘QPYQML_TYPE_INIT’
         QPYQML_TYPE_INIT(59);
         ^~~~~~~~~~~~~~~~
Makefile:4282: recipe for target 'qpyqml_register_type.o' failed
make[1]: *** [qpyqml_register_type.o] Error 1
make[1]: Leaving directory '/home/sturm/pyqt5/PyQt5_gpl-5.11.3.dev1807151030/QtQml'

No way to generate relative imports for promoted widgets using `pyuic5`

I'm using qtcreator to design the UI of a PyQt application. It allows me to bind custom widgets using "widget promotion". While the UI for this seems to be very C++-centric (the dialog asks to specify a "header file"), the pyuic5 tool seems to handle it gracefully, i.e. mapping the header filename to a Python module.

However, the generated import statement uses absolute imports ("from widgets import CustomWidget"), and there is no way to instruct it to use relative imports ("from .widgets import CustomWidget"), even when using the --import-from=. option.

Am I missing something or is this indeed not possible at present ? (It would be great to make this possible !)

examples/itemviews/spreadsheet/ incorrect function name

https://github.com/baoboa/pyqt5/blob/master/examples/itemviews/spreadsheet/spreadsheet.py#L464
line 464: self.table.item(0, 3).setBackgroundColor(titleBackground)

The correct function name is setBackground, not setBackgroundColor.

Even with the fix, there is something funny going on with a function call on line 191:
color = item.backgroundColor()
In some cases, item does not have the backgroundColor attribute. Therefore the application is crashing on click.
https://github.com/baoboa/pyqt5/blob/master/examples/itemviews/spreadsheet/spreadsheet.py#L191

If you surround this function call with an attribute check, the application no longer crashes on click.

        if item:
            if hasattr(item, 'backgroundColor'):
                color = item.backgroundColor()

webkit examples - QtWebKit deprecated

Hi,

just tried to use one of the examples ("\webkit\previewer\ui_previewer.py").
I receive an import error "WtWebKitWidgets".
Apparently, it has been superceeded by PyQt5.QtWebEngineWidgets (reference).

import error on deb9

while on pc1 venv install / run works fine, on pc2 it breaks with:

(venv) user@debian:~/foo/workspace_python/combs/monitor2$ pip install -r requirements.txt
Requirement already satisfied: cycler==0.10.0 in ./venv/lib/python3.5/site-packages (from -r requirements.txt (line 1)) (0.10.0)
Requirement already satisfied: kiwisolver==1.0.1 in ./venv/lib/python3.5/site-packages (from -r requirements.txt (line 2)) (1.0.1)
Requirement already satisfied: matplotlib==2.2.2 in ./venv/lib/python3.5/site-packages (from -r requirements.txt (line 3)) (2.2.2)
Requirement already satisfied: numpy==1.15.0 in ./venv/lib/python3.5/site-packages (from -r requirements.txt (line 4)) (1.15.0)
Requirement already satisfied: PyOpenGL==3.1.0 in ./venv/lib/python3.5/site-packages (from -r requirements.txt (line 5)) (3.1.0)
Requirement already satisfied: pyparsing==2.2.0 in ./venv/lib/python3.5/site-packages (from -r requirements.txt (line 6)) (2.2.0)
Requirement already satisfied: PyQt5==5.11.2 in ./venv/lib/python3.5/site-packages (from -r requirements.txt (line 7)) (5.11.2)
Requirement already satisfied: PyQt5-sip==4.19.12 in ./venv/lib/python3.5/site-packages (from -r requirements.txt (line 8)) (4.19.12)
Requirement already satisfied: pyqtgraph==0.10.0 in ./venv/lib/python3.5/site-packages (from -r requirements.txt (line 9)) (0.10.0)
Requirement already satisfied: python-dateutil==2.7.3 in ./venv/lib/python3.5/site-packages (from -r requirements.txt (line 10)) (2.7.3)
Requirement already satisfied: pytz==2018.5 in ./venv/lib/python3.5/site-packages (from -r requirements.txt (line 11)) (2018.5)
Requirement already satisfied: redis==2.10.6 in ./venv/lib/python3.5/site-packages (from -r requirements.txt (line 12)) (2.10.6)
Requirement already satisfied: six==1.11.0 in ./venv/lib/python3.5/site-packages (from -r requirements.txt (line 13)) (1.11.0)
Requirement already satisfied: setuptools in ./venv/lib/python3.5/site-packages (from kiwisolver==1.0.1->-r requirements.txt (line 2)) (32.3.1)
(venv) user@debian:~/foo/workspace_python/combs/monitor2$ python3 src/main.py
Traceback (most recent call last):
  File "src/main.py", line 9, in <module>
    from pyqtgraph.Qt import QtGui, QtCore
  File "/home/user/foo/workspace_python/combs/monitor2/venv/lib/python3.5/site-packages/pyqtgraph/__init__.py", line 13, in <module>
    from .Qt import QtGui
  File "/home/user/foo/workspace_python/combs/monitor2/venv/lib/python3.5/site-packages/pyqtgraph/Qt.py", line 153, in <module>
    from PyQt5 import QtGui, QtCore, QtWidgets, uic
ImportError: /home/user/foo/workspace_python/combs/monitor2/venv/lib/python3.5/site-packages/PyQt5/QtGui.so: undefined symbol: PySlice_AdjustIndices
(venv) user@debian:~/foo/workspace_python/combs/monitor2$ python -V
Python 3.5.3

any further info need, i will add it right away

Look'n'feel looks weird on 5.10 and 5.10.1 with pyinstaller

I am compiling a very basic pyqt program with pyinstaller and having no issue with pyqt5 5.9.3 but if I switch to 5.10 or 5.10.1 suddenly the look'n'feel of the compiled application is very wrong.

This image shows the app running with pyqt5 5.9.3 (it looks exactly the same native or with pyinstaller; and it also looks the same native on pyqt5 5.10.x):
screen shot 2018-04-06 at 15 22 26

... and this is the same app running with pyinstaller on 5.10.1:
screen shot 2018-04-06 at 15 24 16

Those screenshots were taken on macosx high sierra but the same behaviour was seen on windows 10.

having trouble in use PyQt5.QtWebChannel

I'm having trouble using PyQt5.QtWebChannel.

Every time I try to communicate with JavaScript using qtwebchannel, there is big problem. I looked someplace for the sample,even official website link to c++ code like this: ` .

Just lookin for a sample of how to use PyQt5.QtWebChannel like in c++ `: // setup the QWebSocketServer
QWebSocketServer server(QStringLiteral("QWebChannel Standalone Example Server"), QWebSocketServer::NonSecureMode);
if (!server.listen(QHostAddress::LocalHost, 12345)) {
qFatal("Failed to open web socket server.");
return 1;
}

// wrap WebSocket clients in QWebChannelAbstractTransport objects
WebSocketClientWrapper clientWrapper(&server);

// setup the channel
QWebChannel channel;
QObject::connect(&clientWrapper, &WebSocketClientWrapper::clientConnected,
                 &channel, &QWebChannel::connectTo);

// setup the dialog and publish it to the QWebChannel
Dialog dialog;
channel.registerObject(QStringLiteral("dialog"), &dialog);`

I was wondering if you could help. Please and thank you.

`python': corrupted double-linked list PyQt+DBUS

Hi.

I'm working with a GUI. That GUI receive data from dbus and sends to a chart (pyqtgraph). But in a random moment the program breaks and sends this error:

Check queue from GUI is empty
<queue.Queue object at 0x7f70c0006518>
True
*** Error in `python': corrupted double-linked list: 0x00007f70ac010120 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7ab54)[0x7f717f8c0b54]
/lib64/libc.so.6(+0x7de72)[0x7f717f8c3e72]
/lib64/libc.so.6(__libc_malloc+0x4c)[0x7f717f8c610c]
/home/datawork/.virtualenvs/datawork/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Core.so.5(_ZN10QArrayData8allocateEmmm6QFlagsINS_16AllocationOptionEE+0x5d)[0x7f7171e1f79d]
/home/datawork/.virtualenvs/datawork/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Core.so.5(_ZN7QStringC1EiN2Qt14InitializationE+0x23)[0x7f7171e91f83]
/home/datawork/.virtualenvs/datawork/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Core.so.5(+0x2da37d)[0x7f717204c37d]
/home/datawork/.virtualenvs/datawork/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Core.so.5(_ZN7QString15fromUtf8_helperEPKci+0xe)[0x7f7171e96e3e]
/home/datawork/.virtualenvs/datawork/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5DBus.so.5(+0x2fd13)[0x7f716ab8ed13]
/home/datawork/.virtualenvs/datawork/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5DBus.so.5(+0x27db1)[0x7f716ab86db1]
/lib64/libdbus-1.so.3(dbus_connection_dispatch+0x34e)[0x7f716a926dfe]
/home/datawork/.virtualenvs/datawork/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5DBus.so.5(+0x279e1)[0x7f716ab869e1]
/home/datawork/.virtualenvs/datawork/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5DBus.so.5(+0x27cbe)[0x7f716ab86cbe]
/home/datawork/.virtualenvs/datawork/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Core.so.5(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x986)[0x7f717201bef6]
/home/datawork/.virtualenvs/datawork/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Core.so.5(_ZN15QSocketNotifier9activatedEiNS_14QPrivateSignalE+0x38)[0x7f7172027e78]
/home/datawork/.virtualenvs/datawork/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Core.so.5(_ZN15QSocketNotifier5eventEP6QEvent+0x4b)[0x7f71720281db]
/home/datawork/.virtualenvs/datawork/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Core.so.5(_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent+0xf3)[0x7f7171ff09e3]
/home/datawork/.virtualenvs/datawork/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Core.so.5(+0x2d37dd)[0x7f71720457dd]
/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x159)[0x7f716eee44c9]
/lib64/libglib-2.0.so.0(+0x4a818)[0x7f716eee4818]
/lib64/libglib-2.0.so.0(g_main_context_iteration+0x2c)[0x7f716eee48cc]
/home/datawork/.virtualenvs/datawork/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Core.so.5(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x5f)[0x7f7172044baf]
/home/datawork/.virtualenvs/datawork/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Core.so.5(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xea)[0x7f7171fef26a]
/home/datawork/.virtualenvs/datawork/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Core.so.5(_ZN7QThread4execEv+0x8c)[0x7f7171e196dc]
/home/datawork/.virtualenvs/datawork/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5DBus.so.5(+0x166a5)[0x7f716ab756a5]
/home/datawork/.virtualenvs/datawork/lib/python3.6/site-packages/PyQt5/Qt/lib/libQt5Core.so.5(+0xac60c)[0x7f7171e1e60c]
/lib64/libpthread.so.0(+0x7e25)[0x7f7180319e25]
/lib64/libc.so.6(clone+0x6d)[0x7f717f93e34d]
======= Memory map: ========
00400000-00401000 r-xp 00000000 fd:03 298                                /home/datawork/.virtualenvs/datawork/bin/python3.6
00601000-00602000 r--p 00001000 fd:03 298                                /home/datawork/.virtualenvs/datawork/bin/python3.6
00602000-00603000 rw-p 00002000 fd:03 298                                /home/datawork/.virtualenvs/datawork/bin/python3.6
018ea000-02751000 rw-p 00000000 00:00 0                                  [heap]
02751000-05d83000 rw-p 00000000 00:00 0                                  [heap]
7f7090000000-7f7090021000 rw-p 00000000 00:00 0 
7f7090021000-7f7094000000 ---p 00000000 00:00 0 
7f709501c000-7f7095fd8000 rw-p 00000000 00:00 0 
7f7095fd8000-7f7097fd8000 rw-p 00000000 00:00 0 
7f7097fd8000-7f7097fd9000 ---p 00000000 00:00 0 
7f7097fd9000-7f70987d9000 rw-p 00000000 00:00 0 
7f70987d9000-7f70987da000 ---p 00000000 00:00 0 
7f70987da000-7f7098fda000 rw-p 00000000 00:00 0 
7f7098fda000-7f7098fdb000 ---p 00000000 00:00 0 
7f7098fdb000-7f70997db000 rw-p 00000000 00:00 0 
7f70997db000-7f70997dc000 ---p 00000000 00:00 0 
7f70997dc000-7f7099fdc000 rw-p 00000000 00:00 0 
7f7099fdc000-7f7099fdd000 ---p 00000000 00:00 0 
7f7099fdd000-7f709a7dd000 rw-p 00000000 00:00 0 
7f709a7dd000-7f709a7de000 ---p 00000000 00:00 0 
7f709a7de000-7f709afde000 rw-p 00000000 00:00 0 
7f709afde000-7f709afdf000 ---p 00000000 00:00 0 
7f709afdf000-7f709b7df000 rw-p 00000000 00:00 0 
7f709b7df000-7f709b7e0000 ---p 00000000 00:00 0 
7f709b7e0000-7f709bfe0000 rw-p 00000000 00:00 0 
7f709bfe0000-7f709bfe1000 ---p 00000000 00:00 0 
7f709bfe1000-7f709c7e1000 rw-p 00000000 00:00 0 
7f709c7e1000-7f709c7e2000 ---p 00000000 00:00 0 
7f709c7e2000-7f709cfe2000 rw-p 00000000 00:00 0 
7f709cfe2000-7f709cfe3000 ---p 00000000 00:00 0 
7f709cfe3000-7f709d7e3000 rw-p 00000000 00:00 0 
7f709d7e3000-7f709d7e4000 ---p 00000000 00:00 0 
7f709d7e4000-7f709dfe4000 rw-p 00000000 00:00 0 
7f709dfe4000-7f709dfe5000 ---p 00000000 00:00 0 
7f709dfe5000-7f709e7e5000 rw-p 00000000 00:00 0 
7f709e7e5000-7f709e7e6000 ---p 00000000 00:00 0 
7f709e7e6000-7f709efe6000 rw-p 00000000 00:00 0 
7f709efe6000-7f709efe7000 ---p 00000000 00:00 0 
7f709efe7000-7f709f7e7000 rw-p 00000000 00:00 0 
7f709f7e7000-7f709f7e8000 ---p 00000000 00:00 0 
7f709f7e8000-7f709ffe8000 rw-p 00000000 00:00 0 
7f709ffe8000-7f709ffe9000 ---p 00000000 00:00 0 
7f709ffe9000-7f70a07e9000 rw-p 00000000 00:00 0 
7f70a07e9000-7f70a07ea000 ---p 00000000 00:00 0 
7f70a07ea000-7f70a0fea000 rw-p 00000000 00:00 0 
7f70a0fea000-7f70a0feb000 ---p 00000000 00:00 0 
7f70a0feb000-7f70a17eb000 rw-p 00000000 00:00 0 
7f70a17eb000-7f70a17ec000 ---p 00000000 00:00 0 
7f70a17ec000-7f70a1fec000 rw-p 00000000 00:00 0 
7f70a1fec000-7f70a1fed000 ---p 00000000 00:00 0 
7f70a1fed000-7f70a27ed000 rw-p 00000000 00:00 0 
7f70a27ed000-7f70a27ee000 ---p 00000000 00:00 0 
7f70a27ee000-7f70a2fee000 rw-p 00000000 00:00 0 
7f70a2fee000-7f70a2fef000 ---p 00000000 00:00 0 
7f70a2fef000-7f70a37ef000 rw-p 00000000 00:00 0 
7f70a37ef000-7f70a37f0000 ---p 00000000 00:00 0 
7f70a37f0000-7f70a3ff0000 rw-p 00000000 00:00 0 
7f70a3ff0000-7f70a3ff1000 ---p 00000000 00:00 0 
7f70a3ff1000-7f70a47f1000 rw-p 00000000 00:00 0 
7f70a47f1000-7f70a47f2000 ---p 00000000 00:00 0 
7f70a47f2000-7f70a4ff2000 rw-p 00000000 00:00 0 
7f70a4ff2000-7f70a4ff3000 ---p 00000000 00:00 0 Check queue from GUI is empty
<queue.Queue object at 0x7f70c0006518>
True
Traceback (most recent call last):
  File "run_gui.py", line 276, in <module>

And this looks as a c++ problem or something like that related with pyqt library, what can be?

Remove last row from editabletreeview example.

Hi,
I have tried to run editabletreeview example. and want to remove last row. Application crash with error:

Traceback (most recent call last):
  File "editabletreemodel.py", line 178, in index
    childItem = parentItem.child(row)
  File "editabletreemodel.py", line 60, in child
    return self.childItems[row]
IndexError: list index out of range
[1]    31900 abort (core dumped)  python3 editabletreemodel.py

It's looks like it removes quick good. But next wannt to select index that don't exist.

Here is my work around in class TreeItem I change def of child(self, row) to:

    def child(self, row):
        if row < len(self.childItems):
            return self.childItems[row]
       # else return  None

I am bigener at qt and pyqt so not sure this change is OK in other cases, if yes please give me know I will do my firs merge request :)

Reason: image not found

anyone know why this error keeps happening?

ImportError: dlopen(/usr/local/lib/python2.7/site-packages/PySide/QtCore.so, 2): Library not loaded: @rpath/libpyside-python2.7.1.2.dylib
Referenced from: /usr/local/lib/python2.7/site-packages/PySide/QtCore.so
Reason: image not found

Undesired Keyerror

https://github.com/baoboa/pyqt5/blob/master/pyuic/uic/properties.py#L406

try:
    stdset = bool(int(prop.attrib['stdset']))
except KeyError:
    stdset = True

When stdset is not an attribute, it will always raise a KeyError. Which is undesired. While the desired behaviour seems to be that stdset should be set to False. Next to it stdset will be True, if stdset is not an attribute. This seems very unlogical.

Possible solution:
stdset = 'stdset' in prop.attrib

i would like to use qwebengineview for web development and bind inspector to current tab,but when i operate on inspector the main gui will crash.Thanks for considering this.

def test(self):
self.splitter = QSplitter(Qt.Vertical)
self.webview=QWebEngineView(self)
self.webview.load(QUrl("http://www.baidu.com"))
self.dev_webview = QWebEngineView(self)
self.splitter.addWidget(self.webview)
self.splitter.addWidget(self.dev_webview)
self.dev_webview.page().setInspectedPage(self.webview.page())
self.splitter.setSizes([100,40])
self.setCentralWidget(self.splitter)
self.show()

Add support to release linux aarch64 wheels

Problem

On AArch64, ‘pip install PyQt5’ gives error as no wheels are available for arm64. Also no ‘setup.py’ file is available to install/build it through source code.

Resolution

On aarch64, ‘pip install PyQt5’ should download the wheels from pypi.
@baoboa, Please let me know your interest in releasing aarch64 wheels. Could you also provide the steps for building wheels for PyQt5 so that I can try to build the wheels for AArch64. I can help you in building/uploading AArch64 wheels on PyPi.

pyqt5/../qtdemo.py "Missing documentation"

Error running qtdemo with pyqt5 on linux.

Command: $ python3 /usr/share/doc/pyqt5-examples/examples/qtdemo/qtdemo.py

Error message: "Could not load description. Ensure that the documentation for Qt is built".

Error message occurs when you select one of the demos.

Documentation was built with apt install of qt5-doc.

Relevant installed apps:

qt5-doc/bionic,bionic,now 5.9.5-0ubuntu1 all [installed]
pyqt5-dev-tools/bionic,now 5.10.1+dfsg-1ubuntu2 amd64 [installed]
pyqt5-examples/bionic,bionic,now 5.10.1+dfsg-1ubuntu2 all [installed]
python-pyqt5/bionic,now 5.10.1+dfsg-1ubuntu2 amd64 [installed,automatic]
python3-pyqt5/bionic,now 5.10.1+dfsg-1ubuntu2 amd64 [installed]
qt5-doc/bionic,bionic,now 5.9.5-0ubuntu1 all [installed]

System: Ubuntu 18.04.5 LTS

No module named ....

I get this error when trying to run your examples.
could you please let me know what is wrong here ?

c:\WinPython\python-3.4.4.amd64\python hellogl.py
Traceback (most recent call last):
File "hellogl.py", line 71, in exposeEvent
self.renderNow()
File "hellogl.py", line 51, in renderNow
self.m_gl = self.m_context.versionFunctions()
ImportError: No module named 'PyQt5._QOpenGLFunctions_3_1'

examples\painting\svgviewer error in source code

Under def wheelEvent(self, event):, code event.delta() pops up error message:

File "svgviewer.py", line 281, in wheelEvent
factor = pow(1.2, event.delta() / 240.0)
AttributeError: 'QWheelEvent' object has no attribute 'delta'

The correct code is event.angleDelta().y()

issue with words missing E

When i try to type somethning that end or have E on it is stuck on words drop menu.
for example when typing << thi> is drop auto complete words but not allow to type E if not exits in word list

QtWebEngineWidgets requires library no longer provided by "libva"

When trying to import in Python 3, using PyQt5:
from PyQt5 import QtWebEngineWidgets

I get the error:
ImportError: libva.so.1: cannot open shared object file: No such file or directory

It appears a recent update to "libva" (https://www.archlinux.org/packages/extra/x86_64/libva/files/) has removed this library, and I can't downgrade as FFMPEG requires this newer version as a dependency.

When I try and do a locate on libva.so.1, it only comes up with the 32-bit version, not the 64-bit:

[cameron@Linux-CJRAllan ~]$ locate libva.so.1
/usr/lib32/libva.so.1
/usr/lib32/libva.so.1.4000.0

When trying to find the package containing the library, I only get the 32-bit version offered:
[cameron@Linux-CJRAllan ~]$ pkgfile libva.so.1 multilib/lib32-libva

I'm on Arch Linux, using the following version of qt5-webengine:
[cameron@Linux-CJRAllan ~]$ pacman -Qi qt5-webengine Name : qt5-webengine Version : 5.9.3-1 Description : Provides support for web applications using the Chromium browser project Architecture : x86_64 URL : http://qt-project.org/ Licenses : LGPL3 LGPL2.1 BSD Groups : qt qt5 Provides : None Depends On : qt5-webchannel qt5-location libxcomposite libxrandr pciutils libxss libvpx libevent libsrtp snappy nss protobuf libxslt libxdamage minizip ffmpeg Optional Deps : None Required By : None Optional For : python-pyqt5 Conflicts With : None Replaces : None

Having trouble using QWebView and QWebPage

I'm having trouble importing from PyQt5.QtWebKit

Every time I try to import QWebView or QWebPage, it says that the modules don't exist. python3-pyqt5-webkit is installed on my system. In fact, it's the only other package installed besides the QT main one. I was wondering if you could help. Please and thank you.

Service not available

I have an error when i run the code for QMediaPlayer.
Here is a screenshot:

123

I search a bit. Maybe i may install the gstreamer.
My machine has operating system: Windows 10 + python 3.8.

Can you help me?

I have never used PyQt5 QMediaPlayer in the past.

Thanks in advance,
Chris Pappas

hellogl.py sample: probable typo

Hello. I think that the line

gl.glOrtho(-0.5, +0.5, +0.5, -0.5, 4.0, 15.0)

in hellogl.py (and maybe other samples) should read

gl.glOrtho(-0.5, +0.5, -0.5, +0.5, 4.0, 15.0)

(ie opposite bottom and top). I realized this after copy/pasting the initialization code in my own program. The depth buffer fails in funny ways unless this fix is applied. OpenGL beginner here though, maybe I'm wrong.

crash in examples/itemviews/spreadsheet

Simple fix:

$ diff spreadsheet.py.b spreadsheet.py
465c465
<         self.table.item(0, 3).setBackgroundColor(titleBackground)
---
>         self.table.item(0, 3).setBackground(titleBackground)

listview

hello
thank for this useful code; is it possible to use QFileSystemModel to load videos directly without open QFileDialog ? i tried something like that but always crash

SetStyleSheet a QMenu in QSystemTrayIcon does not work

Hello,

I'm using PyQt5 to make an application with QSystemTrayIcon. Insise I've added a menu and I try to set style sheet but it does not work.

Here is a part of my code:

class AppIcon(QSystemTrayIcon):

    def __init__(self, icon, parent=None):
        QSystemTrayIcon.__init__(self, icon, parent)       
        self.menu = QMenu(parent)
        self.menu.setStyleSheet("background-color: blue")
        (...adding some QActions to menu...)
        self.setContextMenu(self.menu)

If I make self.menu.show, it show the menu with blue background but outside of QSystemTrayIcon. And I want to modify the menu inside the QSystemTrayIcon menu.

Is there a way to do that ?

PS : I'm under Ubuntu and install PyQt5 by pip, so not sure it's the best place to ask that ?

The 5.11.2 wheel is incomplete on Windows 32 bits

Hello,

It seems that the wheel for Windows 32 bits is incomplete. See sizes:

  • PyQt5-5.11.2-5.11.1-cp35.cp36.cp37.cp38-none-win32.whl (39.3 MB)
  • PyQt5-5.11.2-5.11.1-cp35.cp36.cp37.cp38-none-win_amd64.whl (93.3 MB)

And so trying to import PyQt5.QtWebEngineCore will end on the ModuleNotFoundError.

Is it a desired behavior? I do not see any related changes in the changelog.

Calc Does Not Work

Calc Does Not Work

Traceback (most recent call last):
  File "beyn.py", line 120, in digitClicked
    digitValue = int(clickedButton.text())
ValueError: invalid literal for int() with base 10: '&2'
[1]    31390 abort (core dumped)  python3 beyn.py

i got this error when i click a number twice.

Can't access documentation

Could you host the documentation also in another provider, please? Sourceforge has been down for at least 2 days. I'm cloning this repo for now.

missing variable pyqt5/examples/itemviews/frozencolumn/

Hi, Thanks for the great library translations.
There is a missing variable in frozencolumn.py pyqt5/examples/itemviews/frozencolumn/
if you resize horizontal columns, it will spit out with an error. Just add the
self.logicalIndex = 0

I have a question too:
How can i increase number of frozencolumns?
Thanks.

Branch 5.4 compile error.

I am get Branch 5.4, compile got error as follow:

cd QtCore/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/supermap/OpenThings/pyqt5/QtCore/QtCore.pro -o Makefile ) && make -f Makefile 
make[1]: 正在进入目录 `/home/supermap/OpenThings/pyqt5/QtCore'
g++ -c -m64 -pipe -fno-exceptions -O2 -Wall -W -D_REENTRANT -fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -I. -I/usr/local/include/python2.7 -I../qpy/QtCore -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I. -o sipQtCoreQtMatchFlags.o sipQtCoreQtMatchFlags.cpp
In file included from sipQtCoreQtMatchFlags.cpp:24:0:
sipAPIQtCore.h:28:17: fatal error: sip.h: 没有那个文件或目录
 #include <sip.h>
                 ^
compilation terminated.

would any suggestion?
Thanks advance.

pip3 install pyqt5 fails on aarch64

**Environment :

OS: [debian aarch64]
Python [ 3.7.3]
PyQt5 [5.16]

Describe the bug or Expected behaviour ,

command pip3 install pyqt5 fails

Additional context and Screenshots

pip3 install pyqt5
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pyqt5
Using cached https://files.pythonhosted.org/packages/3b/27/fd81188a35f37be9b3b4c2db1654d9439d1418823916fe702ac3658c9c41/PyQt5-5.15.6.tar.gz
Installing build dependencies ... done
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.7/tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-7g0eq6ep/pyqt5/setup.py'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-7g0eq6ep/pyqt5/


Aarch64  packages which have pip dependencies on pyqt5 fail.

I installed pyqt5 with apt and then I removed pyqt5 from the list of required packages so that pip3 does not crash at build time.
However, the solution I proposed above for the aarch64 packages that have a pyqt5 dependency with pip is a temporary hack.

The real solution is to add PyQt5-5.15.6-cp36-abi3-manylinux1_aarch64.whl at https://pypi.org/project/PyQt5/#files

pyuic module can't convert the code related the QWebView widget correctly

I have noted the old issue about this question, Having trouble using QWebView and QWebPage, Since the QtWebKitWidgets module have been deprecated, and we can use the sentence from QtWebEngineWidget import QWebEngineView to replace the sentence made by pyuic to manually solve this problem, I wonder know is there a way to solve this problem by change some code in the uic module so we don't need manually change the file converted by pyuic.

How to use tslib(touch screen library) in pyqt5?

I want to run my pyqt5 application under Ubuntu14 system.
but the touch points is incorrect, i try to calibrate the screen.
I run ts_calibrate to finish touch screen calibrate, it can generate calibrate file normally.
When i run my application, the touch points is still incorrect.
It's seem tslib not working with Pyqt5.
My export like this:
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_CALIBFILE=/etc/pointercal
export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/plugins
export QT_QPA_PLATFORM=linuxfb:fb=/dev/fb0
export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event0
export QWS_MOUSE_PROTO=tslib
export QT_QPA_EGLFS_TSLIB=1
export QT_QPA_FB_TSLIB=1

Did i do anything wrong?

Unable to install pyqt5 on M1

I am using a Macbook air with a m1 chip
os-version = 12.1
python version = 3.10.2
pip version =21.3.1

I try to install pyqt5 with pip pip install PyQt5
Which throw an error

I also try this Suggestion
and not even this work.

Is there anything that can be done to use PyQt5 on Mac?

Thank You 🙏🏼

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.