setAlignment(4) #4为ALignHCenter为居中的意思 layout = QVBoxLayout() #新建一个垂直布局 layout.addWidget(self.lineEdit) #往该布局中添加各种 ...
確定! 回上一頁