Answer the question
In order to leave comments, you need to log in
Multiline text in Qt?
I am creating a base in C ++ using Qt, I ran into a problem - a single-line text is kept in QString, but there is no special multi-line class, and there are no skills to add a splitter like \n to the text itself. The program is a base that will be stored in the table on the left, and now I need the chord text to be stored in the song class variable. (Subsequently, there will be work with files). And here is the question, or rather a request: what class variable to create in order to store multiline text in it, and if it is a QString, then how to introduce a splitter there to break the line?
Answer the question
In order to leave comments, you need to log in
So what exactly did QString not fit? Isn't it possible to store a multiline there?
As a last resort, use QStringList
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question