Unsolved QML doesn't show enough space between space characters
-
Hi all,
My qml works generally fine but I have an issue with texts which contains more than one spaces next to each other. For example,
ThisTextIs aText.Above text is shown something like
ThisTextIs aText.So the spaces seem to be ignored somehow. Does anyone know why would that be?
Btw: After submitting this question, I realized that this form does exactly the same behavior. First text has some more spaces in between ThisTextIs and aText. but not shown for some reason.
Edited: - p3c0
-
Well, apparently it is in HTML specification to have a compact text, therefore ignore multiple spaces. Is this the same in QML? Is there any way to show the text as is (with multiple of spaces).
-
@koliva I edited the post to add space. The forum uses HTML type syntax so it seems to ignore spaces between text unless explicitly we add
 
between them.
Now coming to the actual question. How are you displaying the text in QML ? -
-
@koliva You have not set
text
forText
Item. -
I see, but set to what?
-
@koliva
TextMetrics
'stext
?Text { text: messageMetrics.text }
-
-
@koliva Can you post a complete minimal sample code which can reproduce the problem ?