C++系列三:Qt-for-Python
目录
代码参考:
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()