Results 1 to 2 of 2

Thread: How to I used a QLineEdit as a display widget like a label

  1. #1
    Join Date
    Jul 2012
    Posts
    201
    Thanks
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default How to I used a QLineEdit as a display widget like a label

    hi everyone, I have seen a QLineEdit being used as a display widget like a label. how is that done?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to I used a QLineEdit as a display widget like a label

    Probably using QLineEdit::setReadOnly() and possibly setFrame(). Obviously only good for text (a QLabel can display images also).

Similar Threads

  1. Qwt display coordinates label
    By Jean-Luc in forum Qwt
    Replies: 2
    Last Post: 13th February 2012, 10:08
  2. HOW TO DISPLAY A RECTANGLE ON AN IMAGE on a label
    By qt_user in forum Qt Programming
    Replies: 4
    Last Post: 6th August 2010, 15:19
  3. display number on label
    By aj2903 in forum Qt Programming
    Replies: 4
    Last Post: 12th March 2009, 07:24
  4. how to display micro(mu) symbol in label
    By babu198649 in forum Newbie
    Replies: 2
    Last Post: 7th March 2008, 10:59
  5. Display a Label on top of a QGlWidget
    By Lele in forum Qt Programming
    Replies: 3
    Last Post: 4th February 2008, 16:11

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.