Prevent QML Text element from stripping whitespace
Unsolved
QML and Qt Quick
-
If I attempt to set a QML Text element's text property to say:
text:"This line has space at the end \n" + "but it will be stripped"
The trailing whitespace at the end of the first line will be stripped away automatically once set. Is there any way to prevent or workaround this issue? I'm attempting to center the text,, but I want to be able to use the spaces to pad and justify some of the text if necessary.