|
 |
font color change for QToolButton |
BOSTON_QT
Assistant
Registration Date: 20.04.2008
Posts: 3
Level: 4 [?]
Experience: 78
Next Level: 100
 |
|
| font color change for QToolButton |
 |
Hi,
I'm curious if there is any routine for changing the font color of a QToolButton at all? I was mistaken that I could use setColor, but to no avail. I'm only trying to change the default color from black to white (hopefully). Is there anything that could work? I would sincerely appreciate any help I can get. Thanks so much!
-Jeff
Here is my example constructor:
Button::Button(const QString &text, const QColor &color, QWidget *parent)
: QToolButton(parent)
{
setSizePolicy(QSizePolicy::Expanding, QSizePolicy:
referred);
setText(text);
//set font color here to white?
QPalette newPalette = palette();
newPalette.setColor(QPalette::Button, color);
setPalette(newPalette);
}
|
|
22.04.2008 06:10 |
|
|
|
|
|
 |
views today: 9.830 | views yesterday: 17.520 | total views: 10.243.199
Klebekork Shop - Linux Shop - Kontaktanzeigen - Linux Forum -
SMS Gewinnspiel -
Hotels -
Stadtpläne -
Branchenbuch & Stadtplan
|