Results 1 to 2 of 2

Thread: How do you parse a string in qt C++?

  1. #1
    Join Date
    Jan 2014
    Posts
    1
    Platforms
    Windows

    Default How do you parse a string in qt C++?

    How would I parse through a string with integers and strings and set them equal to corresponding variables? For example if I had a QString like "Brandan 1 2 3" and wanted to set name to "Brandan", num1 to 1, num2 to 2, and num3 to 3. Any input would be greatly appreciated.

  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: How do you parse a string in qt C++?


Similar Threads

  1. parse xml
    By vinayaka in forum Newbie
    Replies: 1
    Last Post: 3rd October 2011, 16:42
  2. Replies: 0
    Last Post: 5th January 2011, 22:21
  3. std:string how to change into system:string?
    By yunpeng880 in forum Qt Programming
    Replies: 1
    Last Post: 14th April 2009, 08:51
  4. XML parse
    By arunredi in forum Newbie
    Replies: 2
    Last Post: 27th April 2008, 01:22
  5. Best way to parse a string
    By Lele in forum Qt Programming
    Replies: 3
    Last Post: 20th August 2007, 12:33

Tags for this Thread

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.