pl01
23rd April 2012, 10:55
Hi,
I would like to change the QTooltip text color, I'm mainly working on a QStyle approach (and not a stylesheet base).
I have try the following, but no way :
QPalette pal = psApp.palette();
pal.setColor(QPalette::Inactive, QPalette::ToolTipBase, 0xa00000);
pal.setBrush(QPalette::Inactive, QPalette::ToolTipBase, QBrush(0xa00000));
pal.setColor(QPalette::Inactive, QPalette::ToolTipText, 0xa00000);
pal.setBrush(QPalette::Inactive, QPalette::ToolTipText, QBrush(0xa00000));
psApp.setPalette(pal);
I have try to find by browsing the original code... but no way !
I would like to change the QTooltip text color, I'm mainly working on a QStyle approach (and not a stylesheet base).
I have try the following, but no way :
QPalette pal = psApp.palette();
pal.setColor(QPalette::Inactive, QPalette::ToolTipBase, 0xa00000);
pal.setBrush(QPalette::Inactive, QPalette::ToolTipBase, QBrush(0xa00000));
pal.setColor(QPalette::Inactive, QPalette::ToolTipText, 0xa00000);
pal.setBrush(QPalette::Inactive, QPalette::ToolTipText, QBrush(0xa00000));
psApp.setPalette(pal);
I have try to find by browsing the original code... but no way !