Compatibility Members for QPalette

The following members of class QPaletteare part of the Qt compatibility layer. We advise against using them in new code.

Public Functions

QPalette(const QColorGroup & active, const QColorGroup & disabled, const QColorGroup & inactive)
QColorGroup active() const
QPalette copy() const
QColorGroup disabled() const
QColorGroup inactive() const
void setActive(const QColorGroup & colorGroup)
void setDisabled(const QColorGroup & colorGroup)
void setInactive(const QColorGroup & colorGroup)
void setNormal(const QColorGroup & colorGroup)

Member Function Documentation

QPalette::QPalette(const QColorGroup & active, const QColorGroup & disabled, const QColorGroup & inactive)

Constructs a palette with the specified active, disabled and inactive color groups.

QColorGroup QPalette::active() const

Returns the active color group.

See also setActive() and QColorGroup.

QPalette QPalette::copy() const

Use simple assignment instead.

QColorGroup QPalette::disabled() const

Returns the disabled color group.

See also setDisabled() and QColorGroup.

QColorGroup QPalette::inactive() const

Returns the inactive color group.

See also setInactive() and QColorGroup.

void QPalette::setActive(const QColorGroup & colorGroup)

Sets the active color group to colorGroup.

See also active() and QColorGroup.

void QPalette::setDisabled(const QColorGroup & colorGroup)

Sets the disabled color group to colorGroup.

See also disabled() and QColorGroup.

void QPalette::setInactive(const QColorGroup & colorGroup)

Sets the inactive color group.

See also inactive() and QColorGroup.

void QPalette::setNormal(const QColorGroup & colorGroup)

Sets the normal color group to colorGroup.

See also normal() and QColorGroup.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.