Mailinglist Archive: opensuse-programming (84 mails)
| < Previous | Next > |
Re: [suse-programming-e] Germany character /Umlaut letter on SuSE 9.1, Qt 3.1.
- From: Stefan Hundhammer <sh@xxxxxxx>
- Date: Thu, 26 Aug 2004 17:13:46 +0200
- Message-id: <200408261713.46984.sh@xxxxxxx>
On Thursday 26 August 2004 16:48, Prabu Subroto wrote:
> dear my friends...
>
> my QTable dan QMessageBox can not display umlaut
> letter such as ' ä ' (ae), ' ü ' (ue) and ' ö
> '(oe).
>
> My QDataBase and my QLineEdit can display the umlaut
> letters but the QMessageBox and QTable don't.
>
> Here I tried this line...
>
> 1. with QMessageBox:
>
> int itemsidcomboBox =
> salesidcomboBox->currentItem();
> if (itemsidcomboBox==0){
> QMessageBox::warning(this, "Achtung !", "Für
> welche
> Berater ID ?" );
You have to convert that from UTF-8 to Unicode. QString uses Unicode
everyhere. Use QString::fromUtf8() if you enter that in UTF-8.
If you enter it in ISO-8859-1, Qt will silently take care of conversion to
UTF-8.
CU
--
Stefan Hundhammer <sh@xxxxxxx> Penguin by conviction.
YaST2 Development
SuSE Linux AG
Nuernberg, Germany
> dear my friends...
>
> my QTable dan QMessageBox can not display umlaut
> letter such as ' ä ' (ae), ' ü ' (ue) and ' ö
> '(oe).
>
> My QDataBase and my QLineEdit can display the umlaut
> letters but the QMessageBox and QTable don't.
>
> Here I tried this line...
>
> 1. with QMessageBox:
>
> int itemsidcomboBox =
> salesidcomboBox->currentItem();
> if (itemsidcomboBox==0){
> QMessageBox::warning(this, "Achtung !", "Für
> welche
> Berater ID ?" );
You have to convert that from UTF-8 to Unicode. QString uses Unicode
everyhere. Use QString::fromUtf8() if you enter that in UTF-8.
If you enter it in ISO-8859-1, Qt will silently take care of conversion to
UTF-8.
CU
--
Stefan Hundhammer <sh@xxxxxxx> Penguin by conviction.
YaST2 Development
SuSE Linux AG
Nuernberg, Germany
| < Previous | Next > |