Get the part of one QString
-
Hi normally when i need to get one string separated in different strings in c++, i do the array conversion and then get the letters that i need. In QT how i can get the first letters like for example:
QString = "Test" I want to get the two first letters. I need to change to array , what recommend me. -
Hi!
how i can get the first letters
QString QString::left(int n) const
See https://forum.qt.io/topic/71894 and http://doc.qt.io/qt-5/qstring.html
-
@Wieland sorry again you are right!
-
@Wieland two hours after sorry for opening this but .. if i want to take since thirst letter not counting since left or right in other words if i use right and this is the string "Newforum" and i take right string.right(8) but i change the string "New fórum more longer" then? i need only take since 3 and sorry but i was searching checking and i am can't solve this .
-
QString::mid http://doc.qt.io/qt-5/qstring.html#mid