[PyQt] Co-installing different versions of dbus.mainloop.qt

Phil Thompson phil at riverbankcomputing.com
Sun Jun 23 11:20:30 BST 2013


On Sun, 23 Jun 2013 13:53:59 +0400, Dmitry Shachnev <mitya57 at ubuntu.com>
wrote:
> Hi,
> 
> It looks like versions of dbus.mainloop.qt module provided by PyQt4
> and PyQt5 work only with Qt4 and Qt5, respectively. Trying to run
> version from PyQt4 with a PyQt5 application, I get:
> 
>     QSocketNotifier: Can only be used with threads started with QThread
>     QSocketNotifier: Can only be used with threads started with QThread
> 
> and connecting to singals doesn't work. Maybe it will make sense to
> rename dbus.mainloop.qt to dbus.mainloop.qt5 in PyQt5? This will make
> these modules co-installable, and it will be possible to use
> dbus.mainloop.qt in PyQt4 apps and dbus.mainloop.qt5 in PyQt5 apps.

Good point. Maybe it would be more explicit to call it pyqt5 rather than
qt5 (to avoid confusion with the PyQt4 built on Qt5 case)?

Phil


More information about the PyQt mailing list