Results 1 to 4 of 4

Thread: QTextEdit and "extended ascii"

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QTextEdit and "extended ascii"

    The QTextEdit widget is based on Unicode and not ascii, so probably you won't succeed in achieving what you want through ascii. I suggest using css instead.

  2. #2
    Join Date
    Nov 2006
    Posts
    86
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    6
    Thanked 14 Times in 5 Posts

    Default Re: QTextEdit and "extended ascii"

    Actually, it turns out that it can be done. I just had to use the correct Unicode number when creating a QChar. I used the Windows Character Map to get the hex code and then converted that into decimal and created the QChar with that number. Seems to work fairly well!

    Paul

  3. The following user says thank you to thomaspu for this useful post:

    pervlad (15th December 2011)

  4. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QTextEdit and "extended ascii"

    As I said, you wouldn't achieve it through ascii. Using Unicode is a different story.

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.