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. 'UnicodeUTF8' is not a member of 'QCoreApplication'[SOLVED]
Qt 6.11 is out! See what's new in the release blog

'UnicodeUTF8' is not a member of 'QCoreApplication'[SOLVED]

Scheduled Pinned Locked Moved General and Desktop
14 Posts 3 Posters 13.6k 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.
  • C Offline
    C Offline
    clouca
    wrote on last edited by
    #3

    Yes i know that ..is not QCoreApplication but it's QApplication sorry for the mistake.. how can i solve this ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #4

      First, can you show where you call that ?

      UnicodeUTF8 is part of QCoreApplication, so it seems there is something very wrong going on.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        clouca
        wrote on last edited by
        #5

        CMenuShipListClass->setWindowTitle(QApplication::translate("CMenuShipListClass", "Ship List", 0, QApplication::UnicodeUTF8));

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bruceoutdoors
          wrote on last edited by
          #6

          are you using Qt 5? If so QApplication::UnicodeUTF8 is deprecated. You would need to change

          @
          CMenuShipListClass->setWindowTitle(QApplication::translate(“CMenuShipListClass”, “Ship List”, 0, QApplication::UnicodeUTF8));
          @

          to

          @
          CMenuShipListClass->setWindowTitle(QApplication::translate(“CMenuShipListClass”, “Ship List”, 0));
          @

          read here: http://qt-project.org/wiki/Transition_from_Qt_4.x_to_Qt5

          1 Reply Last reply
          0
          • C Offline
            C Offline
            clouca
            wrote on last edited by
            #7

            thanks my friend!! i didnt no that.. i am converting a project from an old qt project to qt 5.0.2.. i face many problems...

            1 Reply Last reply
            0
            • B Offline
              B Offline
              bruceoutdoors
              wrote on last edited by
              #8

              Haha... The solution would be more apparent if you mentioned earlier(speaking of solution you might want to mark this as [SOLVED])

              If you discovered anything new when porting from Qt4 to Qt5 feel free to add to the wiki article. In fact the UTF8 section was added by me (:

              1 Reply Last reply
              0
              • C Offline
                C Offline
                clouca
                wrote on last edited by
                #9

                haha.. sure if i find anything i will tell you.. it's a really big project and i am working on that..

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  clouca
                  wrote on last edited by
                  #10

                  how can i mark as solved ?

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #11

                    Simply edit the thread's title and prepend [solved] :)

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      clouca
                      wrote on last edited by
                      #12

                      It is a good idea for somebody to build a parser to do this job..

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        clouca
                        wrote on last edited by
                        #13

                        How can i replace QPlastiqueStyle ? Is the only thing that i didn't find what to do with that..

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #14

                          Please don't mix questions in a thread, you've already started several threads about QPlastiqueStyle.

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0

                          • Login

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