Igor, Paul is correct. In the case of black or similarly dark colors, I would suggest making a function that identifies how dark your color is beforehand(such as checking if all 3 RGB values fall beneath a threshold considering RGB(1,1,1) etc... are still hard to see visually ) and then increasing the lightness factor accordingly. That should ensure that the darker colors get lightened more so you can visually tell the difference easier.
On Wed, Jan 15, 2014 at 12:41 PM, Paul Miller <stel...@gmail.com> wrote: > On 1/15/2014 1:38 PM, Igor Mironchik wrote: > > Is it correct that QColor( Qt::black ).lighter() returns the same black > > color? > > Sure. lighter() multiplies the values of the color by the scale factor > passed into lighter(). It's a gain, not a bias. > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest