Results 1 to 6 of 6

Thread: remove case sensitivity in my application

  1. #1
    Join Date
    Dec 2011
    Posts
    13
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default remove case sensitivity in my application

    hi all,


    i want to remove case sensitivity in my application.Give me any solution for that.

    kinjal

  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: remove case sensitivity in my application

    Convert everything to upper or lower case. I hope you do not seriously expect a more detailed answer than that.

  3. #3
    Join Date
    Dec 2011
    Posts
    13
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: remove case sensitivity in my application

    I want to check that letter that written is in upper-case or lower-case ???
    so how can I check this.???

  4. #4
    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: remove case sensitivity in my application

    Open the documentation for QString and QChar and read.

  5. #5
    Join Date
    Dec 2011
    Posts
    13
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: remove case sensitivity in my application

    yes, you are right but my question is how can I find whether word is in upper or lower???

  6. #6
    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: remove case sensitivity in my application

    yes, you are right but my question is how can I find whether word is in upper or lower???
    No, you have had two questions:
    1. i want to remove case sensitivity in my application.Give me any solution for that. (This is loosely a question)
    2. I want to check that letter that written is in upper-case or lower-case ???

    Neither asks how to tell if a word is upper or lower case, and both have been answered.

    The answer to your latest incarnation of this question is: See the answer to the previous question because everything you need is there. There a more ways to approach this than I have had hot dinners, here are a few:
    • A string is all upper case if all its letters are upper case. Iterate over the letters checking each until you find a lower case character or run off the end of the string.
    • A string is all lower case if all of its letters are lower case. Iterate over the letters checking each until you find a upper case character or run off the end of the string.
    • A string is all upper case if the word is equal to itself converted toUpper().
    • A string is all lower case if the word is equal to itself converted toLower().
    • You could approach this with a QRegExp for simple Latin1 strings also.

Similar Threads

  1. QKeyEvent - lower case vs upper case keys?
    By ArkKup in forum Qt Programming
    Replies: 3
    Last Post: 9th January 2012, 15:58
  2. Qtscroller sensitivity on listview????
    By chandantheracer in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 21st June 2011, 13:04
  3. CASE Tools for Qt4 Application Development--info needed
    By swamyonline in forum Qt Programming
    Replies: 2
    Last Post: 11th October 2010, 16:12
  4. ow to remove spontaneous events from application?
    By barrygp in forum Qt Programming
    Replies: 2
    Last Post: 7th October 2010, 03:23
  5. Remove Title and Context bar when running Qtopia application
    By dkt8154 in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 25th November 2008, 09:05

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.