What that does is allows you to add a QPushButton in place of a standard button, and allows you to specify the buttons role in the QMessageBox
Button Roles: http://qt-project.org/doc/qt-4.8/qmessagebox.html#ButtonRole-enum hope that is more along the lines of what you were trying to achieve. On Tue, Aug 28, 2012 at 10:34 PM, Simon Anderson < [email protected]> wrote: > > you can try this: > > sized_btn = QPushButton( "Sized" ) > sized_btn.setFixedHeight( 100 ) > mBox = QMessageBox() > mBox.setText("BOB") > mBox.addButton(sized_btn, QMessageBox.AcceptRole) > mBox.setStandardButtons( QMessageBox.Discard | QMessageBox.Cancel) > > mBox.setDefaultButton(sized_btn) > mBox.exec_() > -- ------------------- Simon Ben Anderson blog: http://vinyldevelopment.wordpress.com/

