I recently updated my ubuntu system and Qt5 library was updated to version 5.6.2 I had an existing ui file which was being used in my python file as :
class Window(QtWidgets.QMainWindow):
def __init__(self):
super(Window,self).__init__()
print("into init")
uic.loadUi('main.ui',self)
print("loaded main.ui")
self.pushButton_2.clicked.connect(lambda: self.reset())
self.pushButton.clicked.connect(lambda: self.submit())
self.pushButton_3.clicked.connect(self.close)
But now uic.loadUi('main.ui',self)
gives a segmentation fault.
I tried opening the ui file in designer and it opened with the following error
Error while reparenting!
Designer: A class name mismatch occurred when creating a widget using the custom widget factory registered for widgets of class KDialog. It returned a widget of class QDialog.
QMetaProperty::read: Unable to handle unregistered datatype 'SelectionBehavior' for property 'QTabBar::selectionBehaviorOnRemove'
appmenu-qt: registerWindow 206 "&File"
appmenu-qt: registerWindow 206 "&Edit"
appmenu-qt: registerWindow 206 "F&orm"
appmenu-qt: registerWindow 206 "&View"
appmenu-qt: registerWindow 206 "&Settings"
appmenu-qt: registerWindow 206 "&Window"
appmenu-qt: registerWindow 206 "&Help"
NOTE : the ui file does open as it is supposed to but I am not able to load it from my python function and get a Segmentation Fault