Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Prevent QML Text element from stripping whitespace
While_e last edited by
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.