Results 1 to 2 of 2

Thread: how to echo this "&"

  1. #1
    Join Date
    Apr 2009
    Posts
    35
    Thanks
    9
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Android

    Default how to echo this "&"

    i write & on a button,
    make ,but then i see it change to "_" or can't see it
    why ? hot to solve it ?
    some people said use &&,
    who has a better way

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: how to echo this "&"

    from Qt Assistant
    ...
    On certain widgets, using '&' in front of a character will automatically create a mnemonic (a shortcut) for that character, e.g. "E&xit" will create the shortcut Alt+X (use '&&' to display an actual ampersand).
    ...
    read this for more info.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

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

    tsuibin (2nd April 2009)

Similar Threads

  1. rebuild Qt +MinGW
    By Ghost in forum Installation and Deployment
    Replies: 1
    Last Post: 17th October 2008, 12:22
  2. echo command
    By vermarajeev in forum General Programming
    Replies: 3
    Last Post: 30th November 2007, 10:25
  3. Replies: 15
    Last Post: 21st April 2007, 17:46
  4. Bad relink libs on QT4 Mac OSX (install_name_tool)
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 7th April 2007, 09:01

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.