Solved Qt Quick Control 2 - Material Theme - Upper Case are in Lower Case on windows (Qt 5.12.0)
-
Hello i'm facing a problem here on Windows with Qt 5.12.0. When using the Material Theme every text that are supposed to be in Upper Case are in Lower Case. I have the issue in the "Gallery Quick Control" example and in my projects.
This is how the example look like on my system:
What have i done? Maybe i messed with some fonts? Or some fonts are missing?
I don't have the issue with Qt 5.11.2.What am i missing here?
Thanks for your time.
-
I checked on Windows 7 and Ubuntu 16.04 LTS.
Button QML object character at Material theme :
Ubuntu 16.04 LTS - Uppercase
Windows 7 - LowercaseThe cause of the malfunction is still unknown...., I will inform you a little solution.
It set "font.capitalization" to Button QML object.
Probably, it will be uppercase character.Qt Documentation : font QML Basic Type
ButtonPage.qml
74: Button { 75: text: "First" 76: Layout.fillWidth: true + font.capitalization: Font.AllUppercase /// add here 77: }
-
I'm doing it this way, because on iOS Button texts usually are not all uppercase:
font.capitalization: Qt.platform.os == "ios" ? Font.Capitalize : Font.AllUppercase
-
@KazuoAsano Ok thank you is there any bug issue i can follow about this to keep up to date?
-
I can't find Qt document which button text of the Android (Material Design) should be all uppercase.
Therefore, I can't know that whether it's a bug.
but, I will be reported it.