Results 1 to 2 of 2

Thread: error: 'UnicodeUTF8' is not a member of 'QApplication'

  1. #1
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default 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?

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default 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.

  3. The following user says thank you to Santosh Reddy for this useful post:

    atenakid (18th February 2014)

Similar Threads

  1. error C2039: 'hwnd' : is not a member of QPalette
    By weixj2003ld in forum Qt Programming
    Replies: 2
    Last Post: 19th December 2011, 06:32
  2. error: request for member `ok' in `xxx
    By intek in forum Qt Programming
    Replies: 6
    Last Post: 6th March 2009, 21:16
  3. Replies: 3
    Last Post: 19th February 2008, 13:10
  4. QHash static member error
    By ramazangirgin in forum Qt Programming
    Replies: 7
    Last Post: 5th February 2008, 11:26
  5. error:invalid use of member
    By quickNitin in forum General Programming
    Replies: 4
    Last Post: 19th June 2006, 15:21

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
  •  
Qt is a trademark of The Qt Company.