pyside(pyqt)中,继承于QMainWindow的子类,为何不能响应鼠标事件mousePressEvent()?

使用pyside设计UI时,想要获取背景页面的点击事件,做法如下:

# -*- coding: utf-8 -*-
import PySide2 as ps2
from PySide2 import QtGui
from PySide2.QtCore import Signal
from start import *

class start_logic(QMainWindow,Ui_MainWindow):
    sgn_press=Signal()
    def __init__(self,parent=None):
        super(start_logic, self).__init__(parent)
        self.setupUi(self)

    def mousePressEvent(self, event):
        print('press the mouse')

if __name__ == "__main__":
    import sys
    app = QApplication(sys.argv)
    MainWindow = QMainWindow()
    ui = start_logic()
    ui.setupUi(MainWindow)
    ui.init_UI()


    MainWindow.show()
    sys.exit(app.exec_())


其中,QMainWindow是继承于object的布局类。当点击页面空白处时,并不会打印press the mouse这句话,请问有什么解决方法吗?