PDA

View Full Version : help on Qt 2.3 Non commercial version



sanjayshelke
16th February 2009, 10:39
Hi,

I am doing some developement on Qt 2.3 NC version.

I want to display some special symbol.
But it seems that i can use only special symbols having ascii value upto 255.
Any specila symbol above this gives me error.
I am writing the code like this

QString str = QString("\x2190"); // 2190 is the hex value for left arrow

for this line i am getting the error '8592' : too big for character

This works on latest QT version.

Any solution for this


Thanks,
~Sanjay

talk2amulya
16th February 2009, 10:50
i dont know if this function works on that version..but this should solve ur problem:


QString QString::fromUtf16 ( const ushort * unicode, int size = -1 ) [static]
Returns a QString initialized with the first size characters of the Unicode string unicode (ISO-10646-UTF-16 encoded).
If size is -1 (the default), unicode must be terminated with a 0.
QString makes a deep copy of the Unicode data.
See also utf16() and setUtf16().

sanjayshelke
16th February 2009, 10:56
There is no such function in Qt 2.3.

I have already gone for this. and unfortunatley there is nothing like this.

Thanks