目录
代码参考:
self.ui.pushButton.setText("demo")
lable=QLabel("<font color=red size=40>Hello World!</font>")
lable.show()
Signals and Slots:
from PySide6.QtCore import Slot
@Slot()
def say_hello():
print("button")
def function():
print("button")
button = QPushButton("Click me")
button.clicked.connect(say_hello)//function
button.show()
标签:Slot,Qt,参考,Python,button,show,C++,say
From: https://www.cnblogs.com/zhouyitty/p/17697857.html