C

QSafeEventSetColor Class

class SafeRenderer::QSafeEventSetColor

The QSafeEventSetColor class changes the color of the text or picture element. More...

Header: #include <QSafeEventSetColor>
Since: QtSafeRenderer 1.2
Inherits: SafeRenderer::QSafeEvent

This class is deprecated. We strongly advise against using it in new code.

Public Functions

void getColor(SafeRenderer::quint32 &redArg, SafeRenderer::quint32 &greenArg, SafeRenderer::quint32 &blueArg) const
SafeRenderer::quint32 itemId() const
void setColor(const SafeRenderer::quint32 redArg, const SafeRenderer::quint32 greenArg, const SafeRenderer::quint32 blueArg)
void setItemId(const SafeRenderer::quint32 valueArg)

Detailed Description

This class is obsolete from Qt Safe Renderer 2.0 onwards. Use QML states instead for changing color. For more information, see Changing States and Important Concepts in Qt Quick - States, Transitions and Animations.

The QSafeEventSetColor class changes the color of the text or picture element.

Member Function Documentation

void QSafeEventSetColor::getColor(SafeRenderer::quint32 &redArg, SafeRenderer::quint32 &greenArg, SafeRenderer::quint32 &blueArg) const

Gets the red (redArg), green (greenArg), and blue (blueArg) components of the RGB color value.

SafeRenderer::quint32 QSafeEventSetColor::itemId() const

Returns this event's item id.

See also setItemId().

void QSafeEventSetColor::setColor(const SafeRenderer::quint32 redArg, const SafeRenderer::quint32 greenArg, const SafeRenderer::quint32 blueArg)

Sets the color value:

  • redArg is the red component of the color
  • greenArg is the green component of the color
  • blueArg is the blue component of the color

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

Sets the item id.

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

See also itemId().

Available under certain Qt licenses.
Find out more.