C

QSafeEventVisibility Class

class SafeRenderer::QSafeEventVisibility

The QSafeEventVisibility class changes the item visibility between visible and hidden. More...

Header: #include <QSafeEventVisibility>
Since: QtSafeRenderer 1.0
Inherits: SafeRenderer::QSafeEvent

Public Functions

SafeRenderer::quint32 getValue() const
SafeRenderer::quint32 itemId() const
void setItemId(const SafeRenderer::quint32 valueArg)
void setValue(const SafeRenderer::quint32 valueArg)

Detailed Description

The QSafeEventVisibility class changes the item visibility between visible and hidden.

Member Function Documentation

SafeRenderer::quint32 QSafeEventVisibility::getValue() const

Returns the event's value.

SafeRenderer::quint32 QSafeEventVisibility::itemId() const

Returns this event's item id.

See also setItemId().

void QSafeEventVisibility::setItemId(const SafeRenderer::quint32 valueArg)

Sets the item id.

valueArg is the hash of the Safe Item's objectName in QML.

In case of a failure, the following exception will be thrown:

ExceptionIdDescription
SafeRenderer::QSafeEventExceptionSafeRenderer::QSafeEventException::SafeEventException::OutOfBoundsThe offset of the data goes out of the reserved memory area.

See also itemId().

void QSafeEventVisibility::setValue(const SafeRenderer::quint32 valueArg)

Sets visibility value.

If valueArg equals 0, item is hidden. If valueArg equals 1, item is shown.

In case of a failure, an exception is thrown:

ExceptionIdDescription
SafeRenderer::QSafeEventExceptionSafeRenderer::QSafeEventException::SafeEventException::OutOfBoundsThe offset of the data goes out of the reserved memory area.

Available under certain Qt licenses.
Find out more.