I am using a QMessageBox in the standard way to query if the user really wants to quit. I intercept the closeEvent, call an OKToClose() function. It does this

Qt Code:
  1. bool AlvGUI::OKToClose()
  2. {
  3.  
  4. int ret = QMessageBox::warning(this, tr("Alvin Pilot GUI"),
  5. tr("You are quitting the Alvin Graphical User Interface.\n""Do you really want to quit?"),
  6. QMessageBox::Yes | QMessageBox::Default,
  7. QMessageBox::Cancel | QMessageBox::Escape);
  8. if (ret == QMessageBox::Yes)
  9. return true;
  10. else if (ret == QMessageBox::Cancel)
  11. return false;
  12.  
  13. return false;
  14. }
To copy to clipboard, switch view to plain text mode 

when I don't use a stylesheet, everything works the way it should. However, when I use a stylesheet (that does not ever mention QMessageBox) the QPushButtons on the QMessageBox are sized too small, cutting off the text.

QPushButton occurs in my stylesheet, but I never set sizes, etc.

I have found a bug report that seems like it might be relevant

http://bugreports.qt.nokia.com/browse/QTBUG-10246

but I'm not explicity setting min-size. Any other ideas on what might be going on or how to fix it?

thanks