Results 1 to 9 of 9

Thread: QString contains fails to find comma

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: QString contains fails to find comma

    Quote Originally Posted by tbscope View Post
    at() and value() are const
    Ah, I messed it up. Once again. at() is returning a const reference, but value returning a value (which is not const for the returning value, this it what I meant). I will never keep that in mind...
    const T & at ( int i ) const
    T value ( int i ) const
    EDIT: Without a temporary QString you have to use the [] operator.

  2. The following user says thank you to Lykurg for this useful post:

    NicholasSmith (6th August 2010)

Similar Threads

  1. QString find Whole word Only
    By bcteh_98 in forum Qt Programming
    Replies: 9
    Last Post: 7th December 2018, 08:47
  2. QString - find and replace text
    By graciano in forum Newbie
    Replies: 3
    Last Post: 24th January 2009, 20:35
  3. Replies: 14
    Last Post: 16th January 2009, 08:11
  4. Release build fails to find some resource images
    By MrGarbage in forum Installation and Deployment
    Replies: 3
    Last Post: 8th December 2007, 16:04
  5. Replies: 11
    Last Post: 11th October 2007, 16: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.