Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Compilation errors when porting from Qt4 to Qt5
Forum Updated to NodeBB v4.3 + New Features

Compilation errors when porting from Qt4 to Qt5

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 865 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on 14 Jun 2018, 15:34 last edited by
    #1

    While porting from Qt4 to Qt5, I am getting following error
    error: 'UnicodeUTF8' is not a member of 'QApplication'
    Browser->setText(QApplication::translate("ExportWidget", "", 0,QApplication::UnicodeUTF8));
    ^
    Can someone help me in solving the issue

    A 1 Reply Last reply 14 Jun 2018, 18:16
    -1
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 14 Jun 2018, 15:45 last edited by
      #2

      Just take a look at https://wiki.qt.io/Transition_from_Qt_4.x_to_Qt5

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      3
      • Q Qt Enthusiast
        14 Jun 2018, 15:34

        While porting from Qt4 to Qt5, I am getting following error
        error: 'UnicodeUTF8' is not a member of 'QApplication'
        Browser->setText(QApplication::translate("ExportWidget", "", 0,QApplication::UnicodeUTF8));
        ^
        Can someone help me in solving the issue

        A Offline
        A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 14 Jun 2018, 18:16 last edited by aha_1980
        #3

        @Qt-Enthusiast

        Sorry, but this is the third time you ask this questions. You've got already some good answers but you never replied:

        https://forum.qt.io/topic/91276/porting-from-qt4-6-to-qt5
        https://forum.qt.io/topic/91352/how-to-resolve-error-in-porting-qt4-to-qt5-errors

        I'm closing this topic now, please use one of the existing to continue, and please close the other one too. Thanks.

        Qt has to stay free or it will die.

        1 Reply Last reply
        6

        2/3

        14 Jun 2018, 15:45

        • Login

        • Login or register to search.
        2 out of 3
        • First post
          2/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved