You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Sunday, September 10th 2017, 4:16pm

convert pyqt4 to pyqt5

Hello
is it possible to convert python file used pyqt4 to pyqt5 ?
and how please
i tried to do that manually but i found many different examples


from pymaxwell import *
import sys
import os
from PyQt4
import QtGui, uicimport render_views_V3
uifile = 'F:/maxwell tool project/v3/render_views_V3.ui'

Ui_MainWindow, QtBaseClass = uic.loadUiType(uifile)
class MyApp(QtGui.QMainWindow, render_views_V3.Ui_MainWindow):
def __init__(self):
QtGui.QMainWindow.__init__(self)
Ui_MainWindow.__init__(self)
self.setupUi(self)

#########################################################################################
functions
#########################################################################################

if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
style = QtGui.QApplication.setStyle('Plastique')
window = MyApp()
window.show()
sys.exit(app.exec_())[/code]

Used tags

PyQt4, PyQt5