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
上一篇:看看QT窗口头文件


下一篇:PyQt5安装与PyCharm配置Qt Designer