Are you sure you didn't accidentally define qstr_array as both a member variable of the class and as a local variable at the place where you read the strings from the file? If you defined it as a local variable, that "hides" the member variable and will be destroyed as soon as the read function exits, leaving you with a member variable with no content.I do print out the array using qDebug() and all the elements contain the correct strings.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Bookmarks