c++ - How can i get all the text until a space don't come in Qstring? -
hello want ultil space in line occur example
in given picture able whole string using getter method parent window dont want date time part getting
https://www.youtube.com/watch?v=vxw6odvmmpw sun nov 1 20:29:30 2015
while want https://www.youtube.com/watch?v=vxw6odvmmpw
can me used qstring left right cant working properly.
//qstring input holds data... qstring output = input.section(' ', 0, 0);
section
sees string fields seperated seperator character (' '
in case) , returns section given start section (0) upto , including end section (0).
assuming white space in inputstring spaces, if not, change ' '
correct seperator character.
Comments
Post a Comment