[Prev: System] [Home] [Next: ByteArray]

Color

The Color is used to represent colors. Instances of Color can be passed to C++ slots that take arguments of type QColor.

Color Properties
red

The red component of the color. This is a value between 0 and 255.

green

The green component of the color. This value is between 0 and 255.

blue

The blue component of the color. This value is between 0 and 255.

name

The name of the color.

rgb

The rgb color code of the color. The color code is a bitmask on the form 0xrrggbb, where rr is the red component, gg is the green component, and bb is the blue component.

Color Functions
setRgb

setRgb( colorcode )

Sets the color code of the color. The value is a bitmask on the form described above.

[Prev: System] [Home] [Next: ByteArray]