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.
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.
Other text:
And here is the sample code:
import QtQuick 2.0
Rectangle {
width: 250
height: 150
Text {
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?
↧