View Full Version : How to specify RGB color in Qt?
krishbhala
4th December 2007, 13:01
In MFC we have COLORREF value is used to specify an RGB color. I need the exact replacemnet for COLORREF using Qt. How to specify RGB color in Qt? Can you help me anyone... thanks in advance!!!
Khal Drogo
4th December 2007, 13:09
Greetings.
From Assistant:
"typedef QRgb
An ARGB quadruplet on the format #AARRGGBB, equivalent to an unsigned int.
Note that the type also holds a value for the alpha-channel. The default alpha channel is ff, i.e opaque. For more information, see the Alpha-Blended Drawing section.
See also QColor::rgb() and QColor::rgba()."
Basically check the description of the QColor class, the answer lies there.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.