PDA

View Full Version : How to get background color of a control.



etipi
14th May 2010, 08:35
Hi,

I am developing a plugin but before paint operation starts, i need to know background color to be used in paint operation. e.g
if control resides on a grey or ( else if a theme is set) dialog, i need to get this color information. Control has to appear as blended to dialog, frame widget etc.

Question is how to get this color information?

Regards

high_flyer
14th May 2010, 09:47
QWidget::palette()

aamer4yu
14th May 2010, 10:23
and QPalette::color