Results 1 to 13 of 13

Thread: problem with Hebrew font in a control

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Feb 2010
    Posts
    16
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: problem with Hebrew font in a control

    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:
    Qt Code:
    1. void MainWindow::on_pushButton_clicked()
    2. {
    3. ui->listWidget->addItem(trUtf8("שלום"));}
    To copy to clipboard, switch view to plain text mode 

    edit:
    i even tried this code:
    Qt Code:
    1. QString text = "שלום";
    2. QTextCodec *codec = QTextCodec::codecForName("Windows-1255");
    3. QByteArray encodedString = codec->fromUnicode(text);
    4. ui->textEdit->append(encodedString);
    To copy to clipboard, switch view to plain text mode 

    Thank you for helping me!
    Last edited by HeX0R; 10th February 2010 at 11:43.

Similar Threads

  1. Replies: 0
    Last Post: 16th December 2009, 09:45
  2. activeWindow control problem
    By batileon in forum Newbie
    Replies: 3
    Last Post: 17th October 2008, 07:44
  3. RightToLeft QTextEdit for Hebrew
    By hed in forum Qt Programming
    Replies: 6
    Last Post: 16th April 2008, 20:33
  4. Replies: 1
    Last Post: 25th December 2007, 10:35
  5. problem with spinbox control ?
    By vinod in forum Qt Programming
    Replies: 3
    Last Post: 19th April 2006, 19:58

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.