Results 1 to 2 of 2

Thread: How to make some part of text underlined in QLineEdit?

  1. #1
    Join Date
    Oct 2009
    Posts
    8
    Qt products
    Qt/Embedded
    Platforms
    Windows

    Question How to make some part of text underlined in QLineEdit?

    Hello,

    How to make some part of text underlined in QLineEdit?

    for example:
    you@gmail.com; me@gmail.com --> you@gmail.com; me@gmail.com

  2. #2
    Join Date
    Sep 2009
    Posts
    49
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to make some part of text underlined in QLineEdit?

    Use QTextEdit.
    There you can enter text in html format. For example "<u>UnderLine</u>" will print UnderLine in text edit.

    Check details of these two flags in docs of QTextEdit.

    setAcceptRichText & setHtml
    Last edited by prashant; 6th November 2009 at 09:51.
    Prashant


    qt-sdk-win-opensource-2009.03.1.exe
    Python 2.6.3
    PyQt-Py2.6-gpl-4.6-1
    Win XP, 32 Bit

Similar Threads

  1. how can I make a balloon to wrap the editable text?
    By learning_qt in forum Qt Programming
    Replies: 9
    Last Post: 20th January 2009, 15:09
  2. how to make system calls to be displayed in QLineEdit
    By wagmare in forum Qt Programming
    Replies: 2
    Last Post: 10th November 2008, 05:08
  3. how to make the QLineEdit uneditable by user
    By wagmare in forum Qt Programming
    Replies: 2
    Last Post: 7th November 2008, 09:20
  4. Replies: 3
    Last Post: 20th November 2007, 07:03
  5. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57

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.