addWidgetself.lcd = QLCDNumber() grid.addWidget(self.lcd,0,0,3,0) grid.setSpacing(10) ps:起始行,起始列,占用行,占用列