[Qt-interest] QMessageBox and standart buttons
NARCISO, Rui
RUI.NARCISO at airbus.com
Thu Jul 16 17:32:42 CEST 2009
So if i understand it correctly, other than sub-classing QDialog to create a MyQMessageBox there is no way to override the platform defaults ...
-----Message d'origine-----
De : qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com]De la part de Thiago Macieira
Envoyé : jeudi 16 juillet 2009 17:13
À : qt-interest at trolltech.com
Objet : Re: [Qt-interest] QMessageBox and standart buttons
Em Quinta-feira 16 Julho 2009, às 16:36:24, NARCISO, Rui escreveu:
> >From the documentation, the order in which the buttons are presented in
> > the static functions: QMessageBox.question(), etc is platform
> > dependant...
>
> Is there no way to override this behaviour without having to recreate a
> QMessageBox from scratch?
Hi Rui
You can create your own dialogs with QDialog. But if you use the static
functions from QMessageBox, Qt will try to use the platform dialogs whenever
available and look as closely as possible to that platform if there's no API.
--
Thiago Macieira - thiago.macieira (AT) nokia.com
Senior Product Manager - Nokia, Qt Software
Sandakerveien 116, NO-0402 Oslo, Norway
This mail has originated outside your organization, either from an external partner or the Global Internet.
Keep this in mind if you answer this message.
The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other then the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.
More information about the Qt-interest-old
mailing list