* take into account the comment in the API doc, which suggests to use QColor::rgb() (cherry picked from commit 6eafb31f)