c++ - How can i get all the text until a space don't come in Qstring? -


hello want ultil space in line occur example

picture

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

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -