Results 1 to 3 of 3

Thread: how to split a big string?

  1. #1
    Join Date
    Oct 2011
    Posts
    160
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    31

    Default how to split a big string?

    Is there any inbuilt function in qt which splits a string..
    I know split function is there, using this we can split string on white char or some regexp.
    But i need to split a string of 1000 char into 10 strings of each 100 char....
    How can i do that?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: how to split a big string?

    QString::left(), QString::mid(), and QString::right() are fairly obvious.

  3. #3
    Join Date
    Oct 2011
    Posts
    160
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    31

    Default Re: how to split a big string?

    Thank u got it...

Similar Threads

  1. Replies: 7
    Last Post: 6th February 2017, 20:10
  2. Split string
    By mero in forum Qt Programming
    Replies: 3
    Last Post: 19th March 2011, 20:17
  3. split camel case string
    By GrahamLabdon in forum Newbie
    Replies: 5
    Last Post: 1st February 2011, 17:37
  4. How to split a string line
    By grsandeep85 in forum Newbie
    Replies: 5
    Last Post: 29th July 2009, 11:42
  5. How to split a string line
    By grsandeep85 in forum Qt Programming
    Replies: 2
    Last Post: 29th July 2009, 11:28

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.