Results 1 to 7 of 7

Thread: ampersand showing in QLabel

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    52
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default ampersand showing in QLabel

    hello

    In QLabel instead of showing a letter underlined, I see the ampersand sign.
    for example:
    Qt Code:
    1. QLineEdit *initiator = new QLineEdit(this);
    2. QLabel *initiatorL = new QLabel("&initiator:", this);
    3. initiator->setBuddy(initiatorL)
    To copy to clipboard, switch view to plain text mode 
    Show in my widget as: "&initiator:" with the ampersand.

    How can I make Qlabel display it correctly, as an underlined letter?
    Last edited by dave; 4th November 2006 at 23:47. Reason: grammar

Similar Threads

  1. QLineEdit && QLabel
    By eleanor in forum Newbie
    Replies: 16
    Last Post: 12th November 2006, 17:30
  2. Subclassed QLabel and enterEvent
    By Lykurg in forum Qt Programming
    Replies: 2
    Last Post: 29th August 2006, 06:44
  3. QT4 layout of complex dialog is very slow
    By cboles in forum Qt Programming
    Replies: 15
    Last Post: 28th April 2006, 19:57
  4. table in QLabel
    By Pan Wojtas in forum Qt Programming
    Replies: 19
    Last Post: 13th February 2006, 11:37
  5. QLabel with HTML-style formatting docs?
    By Everall in forum Qt Programming
    Replies: 6
    Last Post: 7th February 2006, 20: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.