'UnicodeUTF8' is not a member of 'QCoreApplication'[SOLVED]
-
what's this error? i can't find it even in google..
-
It means that somewhere there is a call to UnicodeUTF8 on a QCoreApplication object or something like QCoreApplication::UnicodeUTF8.
But there is not nothing called UnicodeUTF8 in the QCoreApplication class
-
Yes i know that ..is not QCoreApplication but it's QApplication sorry for the mistake.. how can i solve this ?
-
First, can you show where you call that ?
UnicodeUTF8 is part of QCoreApplication, so it seems there is something very wrong going on.
-
CMenuShipListClass->setWindowTitle(QApplication::translate("CMenuShipListClass", "Ship List", 0, QApplication::UnicodeUTF8));
-
are you using Qt 5? If so QApplication::UnicodeUTF8 is deprecated. You would need to change
@
CMenuShipListClass->setWindowTitle(QApplication::translate(“CMenuShipListClass”, “Ship List”, 0, QApplication::UnicodeUTF8));
@to
@
CMenuShipListClass->setWindowTitle(QApplication::translate(“CMenuShipListClass”, “Ship List”, 0));
@read here: http://qt-project.org/wiki/Transition_from_Qt_4.x_to_Qt5
-
thanks my friend!! i didnt no that.. i am converting a project from an old qt project to qt 5.0.2.. i face many problems...
-
Haha... The solution would be more apparent if you mentioned earlier(speaking of solution you might want to mark this as [SOLVED])
If you discovered anything new when porting from Qt4 to Qt5 feel free to add to the wiki article. In fact the UTF8 section was added by me (:
-
haha.. sure if i find anything i will tell you.. it's a really big project and i am working on that..
-
how can i mark as solved ?
-
Simply edit the thread's title and prepend [solved] :)
-
It is a good idea for somebody to build a parser to do this job..
-
How can i replace QPlastiqueStyle ? Is the only thing that i didn't find what to do with that..
-
Please don't mix questions in a thread, you've already started several threads about QPlastiqueStyle.