其他分享
首页 > 其他分享> > pyqt5的mdimainwindow

pyqt5的mdimainwindow

作者:互联网

1、ui编译

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'MainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(678, 454)

        # MainWindow.setStyleSheet("{ background-image:url(F:\\wk\\hangye\\db2txt\\dbprocess.jpd)}")
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")

        self.mdiArea = QtWidgets.QMdiArea(self.centralWidget)
        self.mdiArea.setGeometry(QtCore.QRect(45, 30, 581, 341))
        # self.mdiArea.setGeometry(QtCore.QRect(45, 30, 581, 241))
        self.mdiArea.setObjectName("mdiArea")

        # self.mdiArea.setVisible(False)

        MainWindow.setCentralWidg

标签:setObjectName,mdiArea,centralWidget,self,pyqt5,QtWidgets,mdimainwindow,MainWindo
来源: https://blog.csdn.net/viviliving/article/details/111719518