What's the simplest way to change a button fonts color & background?
I've tried style sheets and came up with something like this (but it doesn't work)
friends->setFlat(true);
QObject::connect(friends,
SIGNAL(clicked
()),
this, SLOT(updateHitPoints()));
friends-> move(180,270);
friends->setStyleSheet("background-color: yellow");
QPushButton *friends = new QPushButton("Friends", imageLabel);
friends->setFlat(true);
QObject::connect(friends, SIGNAL(clicked()),
this, SLOT(updateHitPoints()));
friends-> move(180,270);
friends->setStyleSheet("background-color: yellow");
To copy to clipboard, switch view to plain text mode
Bookmarks