Help!!! Object text display error
Platform: N8-00, NokiaSDK 1.0.2 (Qt for Symbian 4.6.3 + QtMobility 1.0.2)
Project: Simple "Hello" QLabel + "Quit" PushButton demo, first step demo
Result: Simulator runs ok, but installed to N8-00, got issues:
MainWindow Title and Bottom Pushbutton Text displayed correct
Objects in window text displayed error --> "Hello" became "Fcjjm", "Quit" became "Qsgr", looks like Every Character value subtracted 2.
'H'-2='F' 'e'-2='c' ... "Hello" became "Fcjjm"
- create new QLabel on Mainwindow construction:
QLabel *l = new QLabel(this);
-> "Aba" became "?`_" :confused:
Anyone could help me? any inputs are welcome:)
No clue about it, but it looks like a damn-cool bug!!!
Does using an explicit QString help ?
I would try using
- creating the string on stack
- displaying it
- outputtingit in debug (or looking directly into pointed ram to know if it's a string corruption or a display issue)
String is right in memory
I putted QLineEdit inside, default text string "Hello"
- Tap edit box, enter IME mode, "Hello" appear ...
So, only displaying error, string in memory is still right....
you could try using QLatin1String() instead of QString("").
might be a code page error...
on standard characters (ascii), codepage issues should not happen... especially, not with such an offset
Theoretically not, but who can guarantee?
It's worth a try
Clearly, that was my point about looking at memory : if pointed data is correct and formatting metadata as well, it's even more fun !
I see, you love to do the hard way...
all the result are the same
Strange, no more ideas currently.
Funny thing, on your screenshot, it seems to work with a button or another graphical primitive...
I'm starting to be stuck (and stunned (and damn interested)), too bad I don't have a target to start looking in depth...
Can you try it with a checkbox or radiobutton
and a lineedit and post the output here?
added checkbox, radiobutton and a lineedit,
Avoid conflict, uninstalled Qt4.7 for Desktop, QtSDK 1.0, then installed QtSDK 1.1 beta, got the same result....
So, maybe it isn't complier environment problem, is target device problem???? But if so, why other applications run properly???
seems like it is shifting 2 chars, so you can work around it and get the good result. But it is a strange case indeed and im very interested in the solution. If you find any.
It's high time for a new ticket in the "bug tracker":http://bugreports.qt.nokia.com, I would say... (and leave a link to the ticket here, please).