本文整理匯總了Python中PyQt5.QtWidgets.QDial方法的典型用法代碼示例。如果您正苦於以下問題:Python QtWidgets.QDial方法的具體用法?Python QtWidgets.QDial怎麽用?Python QtWidgets.QDial使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PyQt5.QtWidgets
的用法示例。
在下文中一共展示了QtWidgets.QDial方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: setupUi
# 需要導入模塊: from PyQt5 import QtWidgets [as 別名]
# 或者: from PyQt5.QtWidgets import QDial [as 別名]
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(1053, 761)
self.label = QtWidgets.QLabel(Form)
self.label.setGeometry(QtCore.QRect(240, 20, 551, 171))
self.label.setObjectName("label")
self.dial = QtWidgets.QDial(Form)
self.dial.setGeometry(QtCore.QRect(670, 310, 131, 81))
self.dial.setObjectName("dial")
self.layoutWidget = QtWidgets.QWidget(Form)
self.layoutWidget.setGeometry(QtCore.QRect(240, 230, 194, 230))
self.layoutWidget.setObjectName("layoutWidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.layoutWidget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.label_2 = QtWidgets.QLabel(self.layoutWidget)
self.label_2.setObjectName("label_2")
self.verticalLayout.addWidget(self.label_2)
self.label_3 = QtWidgets.QLabel(self.layoutWidget)
self.label_3.setObjectName("label_3")
self.verticalLayout.addWidget(self.label_3)
self.label_4 = QtWidgets.QLabel(self.layoutWidget)
self.label_4.setObjectName("label_4")
self.verticalLayout.addWidget(self.label_4)
self.layoutWidget1 = QtWidgets.QWidget(Form)
self.layoutWidget1.setGeometry(QtCore.QRect(470, 230, 191, 231))
self.layoutWidget1.setObjectName("layoutWidget1")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.layoutWidget1)
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.ledT = QtWidgets.QLCDNumber(self.layoutWidget1)
self.ledT.setObjectName("ledT")
self.verticalLayout_2.addWidget(self.ledT)
self.ledE = QtWidgets.QLCDNumber(self.layoutWidget1)
self.ledE.setObjectName("ledE")
self.verticalLayout_2.addWidget(self.ledE)
self.ledH = QtWidgets.QLCDNumber(self.layoutWidget1)
self.ledH.setObjectName("ledH")
self.verticalLayout_2.addWidget(self.ledH)
self.retranslateUi(Form)
self.dial.valueChanged['int'].connect(self.ledE.display)
QtCore.QMetaObject.connectSlotsByName(Form)