我在“Qt Designer”中创建了一个 GUI。现在我想打开一个简单的窗口,右上角有一个最小化/最大化按钮。
from PyQt5 import uic
window = uic.loadUi("Video_Player.ui") # Video_Player.ui is the name of my GUI main file.
window.show()
应该是这样的:
window.setWindowFlag(Qt.WindowMinimizeButtonHint , True)
但我不知道如何设置/定义我的 Qt 以使其工作......?

