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
QtWS25 Last Chance

Compilation errors when porting from Qt4 to Qt5

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 850 Views
  • 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 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

    aha_1980A 1 Reply Last reply
    -1
    • Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 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

        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

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 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

        • Login

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