Results 1 to 3 of 3

Thread: qstring::contains

  1. #1
    Join Date
    Jul 2008
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default qstring::contains

    Hi there

    I have a little question, that is probably easy to answer.

    i have a line of comma separated text.

    what i want to do is check that there are at least 5 commas in a line.

    so i have

    line.contains(",");

    how can i use that command to check that there are at least 5 commas???

    Thanks

    TGB

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: qstring::contains


  3. #3
    Join Date
    Jul 2008
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: qstring::contains

    thanks for you help


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.