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)

Qt Code:
  1. QPushButton *friends = new QPushButton("Friends", imageLabel);
  2. friends->setFlat(true);
  3. QObject::connect(friends, SIGNAL(clicked()),
  4. this, SLOT(updateHitPoints()));
  5. friends-> move(180,270);
  6.  
  7. friends->setStyleSheet("background-color: yellow");
To copy to clipboard, switch view to plain text mode