SyntaxFix
Write A Post
Hire A Developer
Questions
Use the left function:
left
QString yourString = "This is a string"; QString leftSide = yourString.left(5); qDebug() << leftSide; // output "This "
Also have a look at mid() if you want more control.
mid()