setLayout(layout) button = QPushButton() layout.addWidget(button) icon = QIcon("image.png") button.setIcon(icon) widget.show() app.exec_().
確定! 回上一頁