I don't think there is any public part of its api that gives you that
option. You would either need to hack on it in a subclass, or the instance
of the QMessageBox, to try and find the child button to click() . Or you
would have to design your own that just shoes more info.

On Wed, 17 Jun 2015 1:45 AM Eric Thivierge <[email protected]> wrote:

> Is there a way to open a QMessagebox while calling setDetailedText() and
> have those details showing by default?
>
> Sample Code:
> msgBox = QtGui.QMessageBox()
> msgBox.setText("The document has been modified.")
> msgBox.setInformativeText("Do you want to save your changes?")
> msgBox.setStandardButtons(QtGui.QMessageBox.Save |
> QtGui.QMessageBox.Discard | QtGui.QMessageBox.Cancel)
> msgBox.setDefaultButton(QtGui.QMessageBox.Save)
> msgBox.setDetailedText('blah blha blhab lhab a;lbh')
>
> msgBox.show()
>
> --
> Eric Thivierge
> Rigging Lead
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/55802866.9040402%40hybride.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2N%2BnJRy6L1tMCOwxELe4W9GK%2BVWWGvB3cRWLJ1CSfWVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to