While testing Qt 5.6.0 and qt.labs.controls on Android and iOS I noticed a problem.
Please take a look at this screenshot:
qt.labs.controls provide three styles: Material, Universal, Default. Controls are different but should have similar size.
As you can see the text in Material style is too small. So I reported a bug: https://bugreports.qt.io/browse/QTBUG-50971
Bug was fixed soon by J-P Nurmi🙂
As I reported the bug, branch 5.6.0 was already freezed, so the fix is in current 5.6 branch: 5.6.1
If you installed 5.6 you probably got 5.6.0.
You can verify your version from Qt Creator –> Preferences –> Build & Run –> Qt Versions
If you want to do some real apps from Qt 5.6.0 you should patch your installed Qt Version.
Qt is Open Source – so it’s no problem to get the changed module🙂
From the bug you can get the info of the affected component (qt/qtquickcontrols2) and the branch (5.6) where it was fixed:
Now it’s easy to patch.
Hint: you must do this for all installed kits – so I have done it for Android and iOS.
Open a Terminal and do this to patch the Android Kit:
export ANDROID_NDK_ROOT=/your_path_to/android-ndk-r10e cd /your-path-to-store-cloned-repo_android git clone --branch 5.6 git://code.qt.io/qt/qtquickcontrols2.git cd qtquickcontrols2 /your-path-where-qt-is-installed/5.6/android_armv7/bin/qmake make make install
and similar for iOS:
cd /your-path-to-store-cloned-repo_ios git clone --branch 5.6 git://code.qt.io/qt/qtquickcontrols2.git cd qtquickcontrols2 /your-path-where-qt-is-installed/5.6/ios/bin/qmake make make install
thanks @jpnurmi helping me to make this work.