How is possible to display a QMessageBox::warning with the triangular exclamation mark symbol like the one following?

I can’t find any option in QMessageBox::warning, I only get the red circular symbol.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The triangular icon should be the default for the
QMessageBox::warningdialog, while the red circular one is the default for theQMessageBox::criticaldialog.In my python code I use either
QMessageBox.warning(None,QString("..."),QString("...."))or the more complex
And both of them works well.
Eventually can you show the code you use to show the dialog ?