C++ (Qt) Q_PROPERTY(qint32 rate READ rate WRITE setRate) Q_PROPERTY(DataBits dataBits READ dataBits WRITE setDataBits) Q_PROPERTY(Parity parity READ parity WRITE setParity) Q_PROPERTY(StopBits stopBits READ stopBits WRITE setStopBits) Q_PROPERTY(FlowControl flowControl READ flowControl WRITE setFlowControl) Q_PROPERTY(DataErrorPolicy dataErrorPolicy READ dataErrorPolicy WRITE setDataErrorPolicy) Q_PROPERTY(bool dtr READ dtr WRITE setDtr) Q_PROPERTY(bool rts READ rts WRITE setRts) Q_PROPERTY(PortError error READ error RESET unsetError) Q_PROPERTY(bool restoreSettingsOnClose READ restoreSettingsOnClose WRITE setRestoreSettingsOnClose)
C++ (Qt)void setProperty(Value value); //< Не должна возвращать значение.Value property() const; //< Именно константный метод.
C++ (Qt) Q_PROPERTY(PortError error READ error RESET unsetError)