41 if (color.isValid()) {
42 result = QString(
"#%1%2%3%4")
43 .arg(color.red(), 2, 16, QChar(
'0'))
44 .arg(color.green(), 2, 16, QChar(
'0'))
45 .arg(color.blue(), 2, 16, QChar(
'0'))
46 .arg(color.alpha(), 2, 16, QChar(
'0'));
50 "Can not convert an invalid color to an RGBA string. There is no string representation "
51 "of an invalid color.",