it is only my first time i am using the Qt framework.
and i am just tried to do a simple ui with a list and button.
when the user press the button something will add to the list.
in English its absolutely working but in Hebrew its doesn't.
i tried verity of code the last one was:
void MainWindow::on_pushButton_clicked()
{
ui->listWidget->addItem(trUtf8("שלום"));}
void MainWindow::on_pushButton_clicked()
{
ui->listWidget->addItem(trUtf8("שלום"));}
To copy to clipboard, switch view to plain text mode
edit:
i even tried this code:
QByteArray encodedString
= codec
->fromUnicode
(text
);
ui->textEdit->append(encodedString);
QString text = "שלום";
QTextCodec *codec = QTextCodec::codecForName("Windows-1255");
QByteArray encodedString = codec->fromUnicode(text);
ui->textEdit->append(encodedString);
To copy to clipboard, switch view to plain text mode
Thank you for helping me!
Bookmarks