I want to get first word of a Qstring.
For example String1 = "Read from file1". I want to extract string2 = "Read".
I want to extract substring based on whitespace.
If I encounter a first whitespace in my string1, I need that part of string1 to string2.
 
     
     
     
    