Font rendering bug (SOLVED)
-
wrote on 2 Aug 2014, 12:50 last edited by
I have some font rendering bug with Qt 5.3.1 on Android device. All texts are messy when Qt Quick Controls are used (Button, Label etc.).
!http://qt.hallikainen.cc/WP_20140801_005.jpg(picture)!Any ideas how to fix?
Regards, Niko H.
-
wrote on 9 Aug 2014, 22:22 last edited by
What device you're using? It's may be known bug on some gpu with qml text element. "View the link...":https://bugreports.qt-project.org/browse/QTBUG-33951. I know bug exists on huawei honor 3, but didn't have device for testing and fix it.
-
wrote on 10 Aug 2014, 04:53 last edited by
I use HTC Desiere HD
Regards, Niko
-
wrote on 10 Aug 2014, 05:09 last edited by
Detect your gpu identification string as shown in bug report and recompile qt.
-
wrote on 10 Aug 2014, 18:39 last edited by
How I can find GPU identification string?
-
wrote on 10 Aug 2014, 19:23 last edited by
In
src/plugins/platforms/android/qandroidplatformopenglcontext.cpp
add QDebug header.Then find function bool QAndroidPlatformOpenGLContext::needsFBOReadBackWorkaroud()
and just qDebug() << rendererString in appropriate place. Recompile Qt. When you run your app you can see it from app output in qt creator or in android monitor. -
wrote on 12 Aug 2014, 10:54 last edited by
If it helps you, please share rendererString
-
wrote on 12 Aug 2014, 11:38 last edited by
Yes, I'll send rendererString but now I have problem with compiling Qt.
I get error this error.
!http://qt.hallikainen.cc/Sieppaa2.png!
I have installed android apis 10, 11, 16. -
wrote on 12 Aug 2014, 11:57 last edited by
Path is:
export JAVA_HOME=/usr/lib/jvm/java-8-oracle/bin/export ANDROID_SDK_ROOT=/home/nikohal/qt5/qt5/adt-bundle-linux-x86-20140702/sdk
export ANDROID_API_VERSION=android-10
Configure:
./configure -xplatform android-g++ -nomake tests -nomake examples -android-ndk /home/nikohal/qt5/qt5/android-ndk-r10 -android-sdk /home/nikohal/qt5/qt5/adb-bundle-linux-x68-20140702/sdk -android-ndk-host linux-x86 -android-toolchain-version 4.9 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -no-warnings-are-errors -no-dbus
-
Hi,
The View.AccessibilityDelegate was introduced in Android Version 14.
See "here":http://developer.android.com/reference/android/view/View.AccessibilityDelegate.html. So as per this link you are supposed to compile it with Android SDK version >= 14.
Perosnally i tried it with Android-14 but i still got the same error. Later when i tried it with Android-19 it worked. So check with what Android SDK version works for you but definitely not with Android-10. -
wrote on 13 Aug 2014, 06:54 last edited by
D/Qt (10857): qandroidplatformopenglcontext.cpp:80 (static bool QAndroidPlatformOpenGLContext::needsFBOReadBackWorkaroud()): Adreno 205
-
wrote on 13 Aug 2014, 07:57 last edited by
Problem solved, I add Adreno 205 to source, and it works :)
!http://qt.hallikainen.cc/DSC_9781.JPG!
Thankyou :)