Results 1 to 2 of 2

Thread: upper case input

  1. #1
    Join Date
    Jan 2006
    Qt products
    Unix/X11 Windows

    Default upper case input

    Hi all,
    hoping it's not too trivial question (I checked in the docs without success) I'd like to know if it's possible to have a QlineEdit where when editing the characters are represented in Upper case even if the keyboard has no Caps Lock.
    I tried with a inputMask but I don't know exactly how many chars will be edited and in any case I don't think it's the proper solution.
    Thanks for any help

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

    Default Re: upper case input

    I would either (1) apply a validator which would convert characters to upper case in its fixup method or (2) connect lineedit's textChanged signal to a custom slot which would change the contents to upper case.

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

    Lele (2nd October 2006)

Similar Threads

  1. Replies: 2
    Last Post: 31st May 2006, 21:52
  2. Discard user input events in QEventLoop.
    By Ben.Hines in forum Qt Programming
    Replies: 2
    Last Post: 17th April 2006, 20:49
  3. How Qt/Embedded detects the keypad input from device?
    By mahe2310 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 4th April 2006, 07:08
  4. Upper case in QDateTime !!!!
    By paranoid_android in forum Qt Programming
    Replies: 4
    Last Post: 15th March 2006, 08:38
  5. QTextCursor - setTextColor()
    By Dalamar in forum Newbie
    Replies: 0
    Last Post: 20th February 2006, 18:34


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.