PDA

View Full Version : error: 'UnicodeUTF8' is not a member of 'QApplication'



saman_artorious
17th August 2013, 08:50
I am running a program I wrote in qt 4.7 with qt 5.0.1 I get the above error. Can I resolve this error?

Santosh Reddy
17th August 2013, 12:47
Refer this Deprecation (http://qt-project.org/wiki/Transition_from_Qt_4.x_to_Qt5#3a05fcdc7ec52801754a 96d4b80c301b)

Just in case the link is missing

This enum type used to define the 8-bit encoding of character string arguments to translate(). This enum is now obsolete and UTF-8 will be used in all cases. So remove all instances of QCoreApplication::UnicodeUTF8.
So just remove it, and don't use it (inthe function parameters)