pyqt5的mdimainwindow

回到未來望過去發表於2020-12-26

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

相關文章