I tried the second but it doesn't help
test = "" finally.Qt Code:
wchar_t * temp = L"abc"; QString test; test.fromWCharArray(temp);To copy to clipboard, switch view to plain text mode
Many thanks for your help anyway.
I tried the second but it doesn't help
test = "" finally.Qt Code:
wchar_t * temp = L"abc"; QString test; test.fromWCharArray(temp);To copy to clipboard, switch view to plain text mode
Many thanks for your help anyway.
I told you that QString::fromWCharArray() is a static method that RETURNS the string. Statement
as not effect at all.Qt Code:
test.fromWCharArray(temp);To copy to clipboard, switch view to plain text mode
J-P Nurmi
jacky (18th April 2009)
Many thanks for your help.
Jacky, please read posts carefully. As jpn said, you have to do like this:
bacause QString::fromWCharArray() is a STATIC member function. Please check some C++ tutorial if you don't clearly understand what static members are.Qt Code:
To copy to clipboard, switch view to plain text mode
I would like to be a "Guru"
Useful hints (try them before asking):
- Use Qt Assistant
- Search the forum
If you haven't found solution yet then create new topic with smart question.
Bookmarks