[Solved]Text rendering problem in QML Harmattan
-
Hi,
I recently upgraded my n950 to "version 34-2 [1.2011.34-2_PR_RM680" firmware and then after I started facing Text rendering problem in my application.
I am not able to see any kind of text on my application. I tried using Lable or Text but nothing appear on screen. When I launch app from command prompt I get following error.
"Unable to load graphicssystem "openvg"
RemoteThemeDaemonClient: Failed to connect to theme server (that's OK if you're on a PC)
LocalThemeDaemonClient: Looking for assets in "/usr/share/themes/blanco/meegotouch"
loaded the Generic plugin
loaded the grue plugin
Loaded the MeeGo sensor plugin
Setting data rate 0 Hz (interval 0 ms) for "meego.orientationsensor"
Component created
Setting data rate 0 Hz (interval 0 ms) for "meego.orientationsensor"
Component created
Setting data rate 0 Hz (interval 0 ms) for "meego.orientationsensor"
Component created
Setting data rate 0 Hz (interval 0 ms) for "meego.orientationsensor"
Component created
X Error: BadDamage (invalid Damage parameter) 153
Extension: 146 (Uknown extension)
Minor opcode: 2 (Unknown request)
Resource id: 0x29
X Error: RenderBadGlyphSet (invalid GlyphSet parameter) 148
Extension: 143 (RENDER)
Minor opcode: 25 (RenderCompositeGlyphs32)
Resource id: 0x23
X Error: RenderBadGlyphSet (invalid GlyphSet parameter) 148
Extension: 143 (RENDER)
Minor opcode: 25 (RenderCompositeGlyphs32)
Resource id: 0x23
X Error: RenderBadGlyphSet (invalid GlyphSet parameter) 148
Extension: 143 (RENDER)
Minor opcode: 25 (RenderCompositeGlyphs32)
Resource id: 0x23
X Error: RenderBadGlyphSet (invalid GlyphSet parameter) 148
Extension: 143 (RENDER)
Minor opcode: 25 (RenderCompositeGlyphs32)My sample QML code is as below.
@import QtQuick 1.0
import com.meego 1.0Item {
id:button
property alias text: btnText.text
width: btnImage.width; height: btnImage.heightsignal clicked; Image { id: btnImage source: mouseArea.pressed ? "cloud_btn_on.png" : "cloud_btn.png" } Text { id: btnText anchors.centerIn: btnImage } MouseArea { id:mouseArea anchors.fill: parent onClicked: button.clicked(); }
}@
Can anyone please provide some hints whats going wrong here.
Thanks,
Kunal -
I realized that I have set openvg as graphics system in my main.cpp and that was causing above issue.
"QApplication::setGraphicsSystem("openvg");"
After removing above line from main.cpp. My application is working fine now.