View Full Version : QTableWidget Headers don't hangle accentuated characters
tuthmosis
28th May 2010, 11:22
The following will generate a header containing "Ä©" instead of "é"
item->setText("é");
ui->tableWidget->setHorizontalHeaderItem( i++, item);
What am i doing wrong ?
tuthmosis
28th May 2010, 16:28
Anyone ?
QTableWidget really don't support UTF8/Unicode ?
alexisdm
28th May 2010, 17:17
You have to set utf8 as the default for decoding literal strings to QString with
QTextCodec::setCodecForCStrings(QTextCodec::codecF orName("utf8"));
preferably before you create any widget.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.