Search code examples
pythonuser-interfacepyqt4

PyQt GUI based CRUD application


I am new to the world of PyQt.I am using PyQt designer for designing the UI and coding to provide functionality in it.But unfortunately I am getting confused to link with the UI.By importing the class we generally doing in examples.But when I try my own code its not happening.

Any hints for how designer and other parts interacts will be super helpful.

Thanks in advance!


Solution

  • Have you tried:

    class ImageViewer(QtGui.QMainWindow, ImageViewerUI.Ui_MainWindow):
    

    because by default pyuic4 create the class Ui_MainWindow and not Ui_mainWindow