Results 1 to 4 of 4

Thread: Show "≤" symbol in QLineEdit

  1. #1
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Show "≤" symbol in QLineEdit

    Hi,

    Anyone knows how to show "≤" symbol on a QLineEdit?

    Thanks,
    Òscar Llarch i Galán

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

    Default Re: Show "≤" symbol in QLineEdit

    There is nothing special about this symbol, you should be able to show it just like any other character.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Show "≤" symbol in QLineEdit

    Hi,

    Time ago I had some problem changing the developer environment. The new IDE changed the symbol by another(don't remember wich). So I think that will be better to use the ASCII code but the problem is that it's not part of ASCII coding.

    Visual Studio shows this warning:
    Qt Code:
    1. warning C4566: el carácter representado por el nombre de carácter universal '\u2264' no se puede representar en la página de códigos actual (1252)
    To copy to clipboard, switch view to plain text mode 
    that is something like "the character represented by universal char '\u2264' cannot be represented on the current code page (1252)"

    Thanks,
    Òscar Llarch i Galán

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

    Default Re: Show "≤" symbol in QLineEdit

    So change the encoding of your source file.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 3
    Last Post: 22nd February 2011, 08:53
  2. Replies: 4
    Last Post: 5th January 2011, 15:51
  3. Unresolved external symbol "staticMetaObject"
    By sr71 in forum Qt Programming
    Replies: 5
    Last Post: 29th June 2010, 23:26
  4. Replies: 3
    Last Post: 17th November 2008, 08:48
  5. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05

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.