Results 1 to 2 of 2

Thread: How to Make some part of qLineEdit editable?

  1. #1
    Join Date
    Nov 2012
    Posts
    2
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Windows

    Question How to Make some part of qLineEdit editable?

    I am using QT 4.8.2 and i am trying to make some part of qLineEdit as editable.
    For eg:
    I want to make only the last octet of an IP address as editable, and keep all other three octet as readonly or not editable.

    Is there any solution achieve this feature in my application.
    Or is there any QT widget other than qLineEdit to implement the same in my application
    Please help me get one as soon as possible

    Thanks

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

    Default Re: How to Make some part of qLineEdit editable?

    You can use a custom validator that will prevent unwanted changes.
    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: 2
    Last Post: 11th April 2012, 10:09
  2. Replies: 2
    Last Post: 20th July 2010, 15:35
  3. Replies: 1
    Last Post: 6th November 2009, 10:03
  4. How to make some part of text underlined in QLineEdit?
    By blonde in forum Qt Programming
    Replies: 1
    Last Post: 6th November 2009, 09:43
  5. Replies: 5
    Last Post: 10th July 2009, 12: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.