[Qt-interest] change the text of the button in a QMessageBox
SALOMEHER at terra.es
SALOMEHER at terra.es
Fri Aug 13 15:11:13 CEST 2010
Because my application is in Spanish except the button "Show Details ...." I
use linguist to move my application from Spanish to English, but I
doubt it very convenient to use linguist to pass my application, almost
all in Spanish except that button, to complete Spanish.
----Mensaje original----
De: dbzhang800 at gmail.com
Fecha: 13/08/2010 14:14
Para: <SALOMEHER at terra.es>
Asunto: Re: [Qt-interest] change the text of the button in a QMessageBox
If you want to change the string, you‘d better using linguist.
otherwise, you can changed the Qt source, and recompile the Qt.
If you want to access the private member of an class, you must change
the Qt source.
What I do not understand is, why do you want to access private class members?
Debao
On Fri, Aug 13, 2010 at 7:33 PM, SALOMEHER at terra.es <SALOMEHER at terra.es> wrote:
> Thank you for the suggestions. But the solution is not this.
> When I do:
> QMessageBox mensajeBox;
> MensajeBox.setDetailedText (MemLogs -> toPlainText ());
> The buttons are created "Show Details ... " and the button " Hide Details
> ... " automatically. What I ask is what I can access to these buttons.
>
> A greeting.
>
> ----Mensaje original----
> De: Scott.Bloom at onshorecs.com
> Fecha: 12/08/2010 17:46
> Para: <SALOMEHER at terra.es>, "Qt interest"<qt-interest at trolltech.com>
> Asunto: RE: [Qt-interest] change the text of the button in a QMessageBox
>
> Look into using linguist, lupdate, and lrelease.
>
>
>
> http://doc.qt.nokia.com/4.6/linguist-programmers.html
>
>
>
> From: qt-interest-bounces at trolltech.com
> [mailto:qt-interest-bounces at trolltech.com] On Behalf Of SALOMEHER at terra.es
> Sent: Thursday, August 12, 2010 5:00 AM
> To: Qt interest
> Subject: [Qt-interest] change the text of the button in a QMessageBox
>
>
>
> Hello,
> how I can change the text of the button "Show Details ..." and the button
> "Hide Details ..." they have by default when we setDetailedText (..) in a
> QMessageBox. I would like to rename the buttons to "Mostrar Detalles..." and
> "Ocultar Detalles..." in Spanish.
> A greeting.
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100813/77f3e897/attachment.html
More information about the Qt-interest-old
mailing list