Results 1 to 2 of 2

Thread: upper case input

  1. #1
    Join Date
    Jan 2006
    Posts
    122
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    16

    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
    Bye

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

    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, 22:52
  2. Discard user input events in QEventLoop.
    By Ben.Hines in forum Qt Programming
    Replies: 2
    Last Post: 17th April 2006, 21: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, 08:08
  4. Upper case in QDateTime !!!!
    By paranoid_android in forum Qt Programming
    Replies: 4
    Last Post: 15th March 2006, 09:38
  5. QTextCursor - setTextColor()
    By Dalamar in forum Newbie
    Replies: 0
    Last Post: 20th February 2006, 19:34

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.