Creating simple form with qt-designer and pyqt

前端 未结 1 2037
借酒劲吻你
借酒劲吻你 2020-12-11 06:30

I\'m trying to run my first application in pyqt. My form looks fine when I\'m doing preview in designer:

http://imageshack.us/photo/my-images/171/screenshotuw.png/

相关标签:
1条回答
  • 2020-12-11 06:52

    I would say that you have designed a QWidget in the designer, and you create a QMainWindow. Replace

    class MyForm(QtGui.QMainWindow)
    

    by

    class MyForm(QtGui.QWidget)
    
    0 讨论(0)
提交回复
热议问题