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 ot开发者_如何学Pythonher parts interacts will be super helpful.
Thanks in advance!
Have you tried:
class ImageViewer(QtGui.QMainWindow, ImageViewerUI.Ui_MainWindow):
because by default pyuic4 create the class Ui_MainWindow and not Ui_mainWindow
winBase, winForm = uic.loadUiType("mainWindow.ui") # this is the file created whith Qt Designer class Window(winBase, winForm): def __init__(self, parent = None) super(winBase, self).__init__(parent) self.setupUi(self)
精彩评论