Results 1 to 3 of 3

Thread: Getting some unusual character

  1. #1
    Join Date
    Jun 2008
    Posts
    22

    Default Getting some unusual character

    Hi,
    I have built an application in Qt 4.4.0. In this application I write C code and compile the same. For displaying error messages I have a result window (as shown in the fig.). This result window is a QListWidget. When the compilation is over, I get all the error messages in a QStringList and display the same on to the QListWidget, result.

    But every time I do this, some peculiar character gets appended to the end of every line of the QStringList. It appears in the form of a small rectangle at the end of the line.

    This is not a character generated by the compiler because if I add the same message to a file or to a QTextEdit, there is no character appended. This happens only with a QListWidget. Please let me know what actaully this character means and how to rectify, keeping my result window a QListWidget.
    Last edited by Abc; 19th August 2008 at 14:29.

  2. #2
    Join Date
    Aug 2006
    Posts
    163
    Thanks
    12
    Thanked 5 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Getting some unusual character

    It's probably a linebreak, '\n'

  3. #3
    Join Date
    Jun 2008
    Posts
    22

    Default Re: Getting some unusual character

    But how exactly do I get rid of this character...
    How should I avoid the display of this onto my QListWidget??

Similar Threads

  1. Special Character Handling
    By Kubil in forum Qt Programming
    Replies: 1
    Last Post: 22nd June 2008, 23:58
  2. printer the chinese character with QPrinter
    By trytoremeber963 in forum Qt Programming
    Replies: 0
    Last Post: 3rd June 2008, 09:42
  3. how to get last character of QLineEdit
    By yagabey in forum Qt Programming
    Replies: 1
    Last Post: 5th January 2008, 17:38
  4. Character from argument disappears
    By Pepe in forum Qt Programming
    Replies: 13
    Last Post: 20th June 2007, 00:48
  5. Determine if a font can display a character
    By jrideout in forum Qt Programming
    Replies: 1
    Last Post: 19th October 2006, 11:33

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.