The QKnxSceneNumber class is a datapoint type for a scene number. 更多...
头: | #include <QKnxSceneNumber> |
qmake: | QT += knx |
继承: | QKnxFixedSizeDatapointType |
QKnxSceneNumber (quint8 number ) | |
QKnxSceneNumber () | |
quint8 | sceneNumber () const |
bool | setSceneNumber (quint8 number ) |
virtual bool | isValid () const override |
This is a fixed size datapoint type with the length of 1 byte.
The minimum scene number is
0
and the maximum scene number is
63
.
另请参阅 QKnxDatapointType , QKnxSceneControl , QKnxSceneInfo ,和 Qt KNX Datapoint Type Classes .
Creates a fixed size datapoint type with the scene number set to number .
Creates a fixed size datapoint type with the scene number set to
0
.
[override virtual]
bool
QKnxSceneNumber::
isValid
() const
重实现: QKnxDatapointType::isValid () const.
Returns the scene number stored in the datapoint type.
另请参阅 setSceneNumber ().
Sets the scene number stored in the datapoint type to number .
If the value is outside the allowed range, returns
false
and does not set the value.
另请参阅 sceneNumber ().