pyqt4topyqt5 icon indicating copy to clipboard operation
pyqt4topyqt5 copied to clipboard

pyqt4 -> pyqt5

Results 20 pyqt4topyqt5 issues
Sort by recently updated
recently updated
newest added

It seems that all initializations of QGraphicsItem subclasses are refactored in this way: ```diff class MyEllipse(QtGui.QGraphicsEllipseItem): +class MyEllipse(QtWidgets.QGraphicsEllipseItem): def __init__(self, radius=5.0): - super(MyEllipse, self).__init__(-radius/2, -radius/2, radius, radius) + super(MyEllipse, self).__init__(-radius/2,...

It would be great if you thought of adding snake case to transformed `pyqtSignal` rather than having to go through every variable and remove spaces in between the words. Otherwise,...

Note: This error might be a result of my lack of understanding of how Windows shell commands work. When executing the script from the Windows shell as such: `C:\path\of\pyqt4topyqt5file\> python...

Can the code be modified (or create a new tool) to convert PYQT5 to PYQT6?

hi can you explain step by step how this script used ?

**pyQt4** supports old style signals **and** new style signals, **pyQt5** supports new stylesignals **only**, according to http://pyqt.sourceforge.net/Docs/PyQt5/pyqt4_differences.html This script converts from old to new style, but it also does a...

When running the conversion on Windows 10 with Python 3.6, I get broken line endings in some places: ```CR LF``` becomes ``` CR LF CR CR LF ``` but for...

The following code: ```python self.connect(self, QtCore.SIGNAL("clicked(const QModelIndex &)"), self.clicked) ``` gets converted to ```python self.clicked[QModelIndex].connect(self.clicked) ``` But that code is giving me an error: ``` Traceback (most recent call last):...

The following code: ```python if hasattr(inst, 'toPyObject'): inst = inst.toPyObject() ``` gets converted to: ```python if hasattr(inst, 'toPyObject'): inst = inst ``` I am unsure whether this is correct!? Or...

I am attempting to convert someone else's code from Python 2 to 3, which requires an upgrade from PyQt4 to PyQt5. I tried using this tool to do the pyqt...