Results 1 to 2 of 2

Thread: How to show Soft Hyphen Character in Line Edit or drawText?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2015
    Posts
    35
    Thanks
    20
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Exclamation How to show Soft Hyphen Character in Line Edit or drawText?

    Hi!

    I want to show a string that loaded into str1 from database. That string contained Soft Hyphen Character (00AD).
    My problem is that string (all characters except soft hyphen character) is shown in my lineEdit or painter.drawText . Only Soft Hyphen Character is disappeared.
    How can I show that string including soft hyphen?

    eg. ui->lineEdit->setText(str1);
    eg. painter.drawText(rect,Qt::AlignLeft |Qt::AlignVCenter,str1);
    Last edited by binary001; 24th September 2015 at 16:27.

Similar Threads

  1. QTableView line edit clears the text on edit
    By PlasticJesus in forum Qt Programming
    Replies: 5
    Last Post: 14th March 2015, 19:06
  2. Replies: 3
    Last Post: 26th August 2010, 08:57
  3. Replies: 2
    Last Post: 10th November 2009, 06:17
  4. Character encoding in text edit and llne edit
    By greenvirag in forum Qt Programming
    Replies: 3
    Last Post: 20th January 2009, 08:45
  5. Replies: 8
    Last Post: 15th May 2007, 09:21

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.