
- Forum
- Qt
- Qt Programming
- error: ‘UnicodeUTF8’ is not a member of ‘QApplication’
-
17th August 2013, 09:50
#1
error: ‘UnicodeUTF8’ is not a member of ‘QApplication’
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?
-
17th August 2013, 13:47
#2
Re: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’
Refer this Deprecation
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)
When you know how to do it then you may do it wrong.
When you don’t know how to do it then it is not that you may do it wrong but you may not do it right.
-
The following user says thank you to Santosh Reddy for this useful post:
atenakid (18th February 2014)
Similar Threads
-
Replies: 2
Last Post: 19th December 2011, 07:32
-
Replies: 6
Last Post: 6th March 2009, 22:16
-
Replies: 3
Last Post: 19th February 2008, 14:10
-
Replies: 7
Last Post: 5th February 2008, 12:26
-
Replies: 4
Last Post: 19th June 2006, 16:21
Bookmarks
Bookmarks

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
- BB code is On
- Smilies are On
- [IMG] code is On
- [VIDEO] code is On
- HTML code is Off
Forum Rules
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.
Hello guys,
I am new to the Klayout community. I hope I can learn as much as possible from you ![]()
I was trying to install Klayout on my Linux (Fedora 26) but I encountered some problems during the build process.
The error that I got during the building process is the following:
In file included from ../../../src/laybasic/laybasic/layBookmarkManagementForm.h:28:0,
from moc_layBookmarkManagementForm.cpp:9:
./ui_BookmarkManagementForm.h: In member function ‘void Ui_BookmarkManagementForm::retranslateUi(QDialog*)’:
./ui_BookmarkManagementForm.h:148:135: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’
late(«BookmarkManagementForm», «Manage Bookmarks», 0, QApplication::UnicodeUTF8));
^~~
./ui_BookmarkManagementForm.h:149:129: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’
gementForm», «Double-click to edit bookmark name», 0, QApplication::UnicodeUTF8));
^~~
./ui_BookmarkManagementForm.h:150:109: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’
ion::translate(«BookmarkManagementForm», «Delete», 0, QApplication::UnicodeUTF8));
^~~
./ui_BookmarkManagementForm.h:151:101: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’
ication::translate(«BookmarkManagementForm», «OK», 0, QApplication::UnicodeUTF8));
^~~
./ui_BookmarkManagementForm.h:152:109: error: ‘UnicodeUTF8’ is not a member of ‘QApplication’
ion::translate(«BookmarkManagementForm», «Cancel», 0, QApplication::UnicodeUTF8));
^~~
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-reserved-user-defined-literal’
gmake[2]: *** [Makefile:12804: moc_layBookmarkManagementForm.o] Error 1
gmake[2]: Leaving directory ‘/home/kalosu/Documents/Nazca/klayout-0.26/build-release/laybasic/laybasic’
gmake[1]: *** [Makefile:46: sub-laybasic-make_first] Error 2
gmake[1]: Leaving directory ‘/home/kalosu/Documents/Nazca/klayout-0.26/build-release/laybasic’
gmake: *** [Makefile:276: sub-laybasic-make_first] Error 2
Any idea about what could I do to solve this?
Cheers,
|
|