PyKDE: Migrating from PyQt4 to PyQt5

124 Views Asked by At

I am new to PyQt and am currently working on a project which is was written in PyQt4. I need to update it to PyQt5 and have done most of it. However, when it comes to PyKDE, it generates the following error:

from PyKDE4.kdeui import KVBox, KHBox, KColorButton RuntimeError: the PyQt4.QtCore and PyQt5.QtCore modules both wrap the QObject class

The code line using PyKDE4 is:

from PyKDE4.kdeui import KVBox, KHBox, KColorButton

Basically most of the code is already in PyQt5, but I haven't found a translation for PyKDE4. Anyone can help?

0

There are 0 best solutions below