[SOLVED] How can i set the background color of listwidget item using rgb values?
-
You can use a QColor value.
E.g. through "http://doc.qt.nokia.com/4.7/qcolor.html#setRgb":http://doc.qt.nokia.com/4.7/qcolor.html#setRgb -
Of course you can not. setRgb is not a static method, after all. Use fromRgb if you do not want to use a QColor object instance that you can manipulate.
This is really basic stuff, and very easy to find in the documentation file that you were already refered to. Please do a bit of digging yourself before asking.