QXmppColorGeneration Class
Generates colors from strings as defined in XEP-0392: Consistent Color Generation. More...
| Header: | #include <QXmppColorGeneration.h> |
| Since: | QXmpp 1.10 |
Public Types
| struct | Rgb |
Static Public Members
| QColor | generateColor(QStringView str) |
| QXmppColorGeneration::Rgb | generateRgb(QStringView str) |
Detailed Description
This way the colors are unique between different clients.
Member Function Documentation
[static] QColor QXmppColorGeneration::generateColor(QStringView str)
Generates a QColor for the string str.
Note: This is a header-only function and it is only available when building the application using QXmpp with the Qt GUI module.
[static] QXmppColorGeneration::Rgb QXmppColorGeneration::generateRgb(QStringView str)
Generates an RGB color triple for a string.
str.