I'm sorry about this, I know there are lots of threads changing the colours of widgets, but it's just not working for my QPushButton.

I do this first
Qt Code:
  1. buttonH1->setAutoFillBackground (true);
To copy to clipboard, switch view to plain text mode 
and then I've tried this
Qt Code:
  1. buttonH1->setPalette(Qt::green);
To copy to clipboard, switch view to plain text mode 
and this
Qt Code:
  1. QPalette palette;
  2. palette.setColor(QPalette::Button, Qt::green);
  3. buttonH1->setPalette(palette);
To copy to clipboard, switch view to plain text mode 
and this
Qt Code:
  1. palette.setColor(buttonH1->backgroundRole(), Qt::green);
  2. buttonH1->setPalette(palette);
To copy to clipboard, switch view to plain text mode 
I get a green 'lining' around the button and/or green text but the button itself remains grey.

I've also tried setting all the palette to green, as below. I don't get a green button.
Qt Code:
  1. //palette.setColor(QPalette::Window, Qt::green);
  2. //palette.setColor(QPalette::Background, Qt::green);
  3. //palette.setColor(QPalette::WindowText, Qt::green);
  4. //palette.setColor(QPalette::Foreground, Qt::green);
  5. //palette.setColor(QPalette::Base, Qt::green);
  6. //palette.setColor(QPalette::AlternateBase, Qt::green);
  7. //palette.setColor(QPalette::Text, Qt::green);
  8. palette.setColor(QPalette::Button, Qt::green);
  9. //palette.setColor(QPalette::ButtonText, Qt::green);
  10. //palette.setColor(QPalette::BrightText, Qt::green);
To copy to clipboard, switch view to plain text mode 

Could somebody please tell me what I need to do?
thanks
K