hello all,
what's wrong here .. ?
Qt Code:
  1. btnOnOff = new QPushButton("start/stop");
  2. btnOnOff->setCheckable(true);
  3. qApp->setStyleSheet("#btnOnOff{color:green}");//this has no effect
  4. qApp->setStyleSheet("QPushButton{color:green}");//this colours all QPushButtons (as excpected
To copy to clipboard, switch view to plain text mode 

I may have missed something silly. Why is the first setStyleSheet() ignored? Do I have to tell sombody about the name 'btnOnOff?

thanks
K