[SOLVED] TextInput & TextEdit mess up the text rendering when text is entered
-
I have a strange problem with the TextInput and TextEdit components:
When I write letters that are not already displayed by my QML application, it will mess up the rendering of text in the entire application.
Here is an example for a better understanding:
There is a Text saying "Hello World" and a TextInput with the text "Edit". As you can see everything is fine.
!http://i.imgur.com/BPLTYDy.png(pic1)!
But after typing a letter in the TextInput, that is not already somewhere in the app (in this example after typing the "a"), the Text with "HelloWord" is messed up. Some letters are missing or in other cases are replaced by broken characters. Even the TextInput letters are messed up if I write further on.
!http://i.imgur.com/ZLVIaIv.png(pic2)!
Other text:
!http://i.imgur.com/VKICkyv.png(pic3)!And here is the sample code:
@
import QtQuick 2.0Rectangle {
width: 250
height: 150Text { text: qsTr("Hello World") } TextInput{ text: qsTr("Edit") anchors.centerIn: parent }
}
@I compile everything with MinGW on Windows 8 Pro 32 bit (german). I use QT 5.1 with QT Creator 2.7.2.
So are there any ideas what is going wrong? -
Hello
Have you tried "renderType: Text.NativeRendering" ?
@
TextInput{
text: qsTr("Edit")
anchors.centerIn: parent
renderType: Text.NativeRendering
}
@ -
Hi,
thanks that works perfectly =)
Is there some kind of "use this renderype appwide" option, so that you dont have to use this line for every input field you have in your app?
-
Anyone find a way to set NativeRendering App wide?