Results 1 to 3 of 3

Thread: Problem with accented characters

  1. #1
    Join Date
    Jan 2009
    Posts
    78
    Thanks
    21
    Thanked 1 Time in 1 Post

    Default Problem with accented characters

    Hi
    Whi is this line ...
    Qt Code:
    1. modelo->setHeaderData(Produtos_descricao, Qt::Horizontal, tr("Descrição"));
    To copy to clipboard, switch view to plain text mode 
    ... not showing the accented characters correctly in the view that i created?

    Is it a Qt or a Operating System issue?

    Thanks

  2. #2
    Join Date
    Jul 2007
    Location
    Jundiai/SP, Brazil
    Posts
    114
    Thanks
    5
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem with accented characters

    Hi,

    Use trUtf8()

    See:
    modelo->setHeaderData(Produtos_descricao, Qt::Horizontal, trUtf8("Descrição"));

  3. The following 2 users say thank you to vcp for this useful post:

    fnmblot (14th April 2009), gt.beta2 (14th April 2009)

  4. #3
    Join Date
    Jan 2009
    Posts
    78
    Thanks
    21
    Thanked 1 Time in 1 Post

    Default Re: Problem with accented characters

    Thanks
    That solves it.

Similar Threads

  1. Replies: 1
    Last Post: 5th February 2009, 23:50
  2. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  3. Problem extracting special characters from DB
    By mourad in forum Qt Programming
    Replies: 2
    Last Post: 28th April 2008, 07:59
  4. Unicode problem in hoverlink
    By anju123 in forum Qt Programming
    Replies: 2
    Last Post: 27th August 2007, 13:56
  5. Problem at time compilation in traslation of language
    By thomasjoy in forum Qt Programming
    Replies: 3
    Last Post: 22nd May 2007, 14:18

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.