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. QT4.6.2 Project on QT 5.8.0 (QTCreater 4.2.1)
QtWS25 Last Chance

QT4.6.2 Project on QT 5.8.0 (QTCreater 4.2.1)

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 3 Posters 3.9k 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.
  • D Offline
    D Offline
    devKing
    wrote on last edited by
    #1

    Hi guys,
    Im new to QT and i have an issue.How to open QT4.6.2 PRO in QTCreater 4.2.1??
    i Also have 4.6.2 but idk how to use pro file in that.(only designer is opening)
    I need to run this project somehow pls help!!!

    A jsulmJ 2 Replies Last reply
    0
    • D devKing

      Hi guys,
      Im new to QT and i have an issue.How to open QT4.6.2 PRO in QTCreater 4.2.1??
      i Also have 4.6.2 but idk how to use pro file in that.(only designer is opening)
      I need to run this project somehow pls help!!!

      A Offline
      A Offline
      ambershark
      wrote on last edited by
      #2

      @devKing My timeline may be off but I believe Qt4 was way before Qt Creator. So I don't think it handles Qt4 projects. I could be totally wrong here though.

      If you need that to work though you don't need qt creator, you can just build it on the command line.

      I'll assume a posix OS but if you're using windows let me know and I can amend these instructions..

      open a terminal
      $ export PATH="/path/to/qt4/bin:$PATH"
      $ export QTDIR="/path/to/qt4"
      $ cd /path/to/your/project
      $ qmake
      $ make
      

      That should build it for you, no qt creator needed. Instructions for windows are similar expect you would use SET instead of export and for path it would be set PATH=\path\to\qt4\bin;%PATH%. The rest is the same, substituting set for export in the QTDIR step as well. Although in windows it assumes you have a development environment set up, which you may not, so if you're doing windows let me know and I'll try to help further.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      1 Reply Last reply
      1
      • D Offline
        D Offline
        devKing
        wrote on last edited by
        #3

        Re: QT4.6.2 Project on QT 5.8.0 (QTCreater 4.2.1)
        Ty for the reply
        And ya I'm using Windows

        1 Reply Last reply
        0
        • D devKing

          Hi guys,
          Im new to QT and i have an issue.How to open QT4.6.2 PRO in QTCreater 4.2.1??
          i Also have 4.6.2 but idk how to use pro file in that.(only designer is opening)
          I need to run this project somehow pls help!!!

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @devKing @ambershark QtCreator can handle Qt4 just fine. You just need to install Qt4 and then open the project (pro file) in QtCreator. So, you installed Qt4, right? You open the pro file in QtCreator? Did you select the Qt4 Kit? After opening the pro file right-click on the project on the left side and select "Run qmake" then build.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          D 1 Reply Last reply
          2
          • jsulmJ jsulm

            @devKing @ambershark QtCreator can handle Qt4 just fine. You just need to install Qt4 and then open the project (pro file) in QtCreator. So, you installed Qt4, right? You open the pro file in QtCreator? Did you select the Qt4 Kit? After opening the pro file right-click on the project on the left side and select "Run qmake" then build.

            D Offline
            D Offline
            devKing
            wrote on last edited by
            #5

            @jsulm said in QT4.6.2 Project on QT 5.8.0 (QTCreater 4.2.1):

            @devKing @ambershark QtCreator can handle Qt4 just fine. You just need to install Qt4 and then open the project (pro file) in QtCreator. So, you installed Qt4, right? You open the pro file in QtCreator? Did you select the Qt4 Kit? After opening the pro file right-click on the project on the left side and select "Run qmake" then build.

            I tried this and it was not working..i got the project into QTCreater but i cloudn't run.
            "No winrtrunner.exe found."
            was the error..

            jsulmJ 1 Reply Last reply
            0
            • D devKing

              @jsulm said in QT4.6.2 Project on QT 5.8.0 (QTCreater 4.2.1):

              @devKing @ambershark QtCreator can handle Qt4 just fine. You just need to install Qt4 and then open the project (pro file) in QtCreator. So, you installed Qt4, right? You open the pro file in QtCreator? Did you select the Qt4 Kit? After opening the pro file right-click on the project on the left side and select "Run qmake" then build.

              I tried this and it was not working..i got the project into QTCreater but i cloudn't run.
              "No winrtrunner.exe found."
              was the error..

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @devKing What Qt version did you installed? Which Kit did you use?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              D 1 Reply Last reply
              1
              • jsulmJ jsulm

                @devKing What Qt version did you installed? Which Kit did you use?

                D Offline
                D Offline
                devKing
                wrote on last edited by
                #7

                @jsulm QTCReater 4.2.1
                Version 4.6.2 & 5.8.0
                KIT:4.6.2 & 5.8.0

                jsulmJ 1 Reply Last reply
                0
                • D devKing

                  @jsulm QTCReater 4.2.1
                  Version 4.6.2 & 5.8.0
                  KIT:4.6.2 & 5.8.0

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by jsulm
                  #8

                  @devKing Did you use Kit with Qt4? What exact Qt4 version did you install (for which compiler)?
                  "No winrtrunner.exe found." - winrtrunner.exe is only needed for Windows RT. I don't think Qt4 supports Windows RT, so you most probably used Qt5 for Windows RT instead of Qt4. See here: http://doc.qt.io/qt-5/winrt-support.html

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  D 1 Reply Last reply
                  1
                  • jsulmJ jsulm

                    @devKing Did you use Kit with Qt4? What exact Qt4 version did you install (for which compiler)?
                    "No winrtrunner.exe found." - winrtrunner.exe is only needed for Windows RT. I don't think Qt4 supports Windows RT, so you most probably used Qt5 for Windows RT instead of Qt4. See here: http://doc.qt.io/qt-5/winrt-support.html

                    D Offline
                    D Offline
                    devKing
                    wrote on last edited by devKing
                    #9

                    @jsulm I used KIT 4.6.0 as default and tried to run.
                    QT version 4.6.0 as for compiler i tried with mingw
                    Another error is there "Unknown module(s) in QT: webkit"

                    jsulmJ 1 Reply Last reply
                    0
                    • D devKing

                      @jsulm I used KIT 4.6.0 as default and tried to run.
                      QT version 4.6.0 as for compiler i tried with mingw
                      Another error is there "Unknown module(s) in QT: webkit"

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @devKing Check your Qt4 Kit - something is wrong. It should not ask for winrtrunner.exe. And also try to rebuild completely.
                      You should use latest Qt4 version which is 4.8.7.
                      Regarding ""Unknown module(s) in QT: webkit" - how did you install Qt4? Did you use online installer, offline installer, are you on Linux and did you use the Qt4 packages from your distribution?

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      D 1 Reply Last reply
                      1
                      • jsulmJ jsulm

                        @devKing Check your Qt4 Kit - something is wrong. It should not ask for winrtrunner.exe. And also try to rebuild completely.
                        You should use latest Qt4 version which is 4.8.7.
                        Regarding ""Unknown module(s) in QT: webkit" - how did you install Qt4? Did you use online installer, offline installer, are you on Linux and did you use the Qt4 packages from your distribution?

                        D Offline
                        D Offline
                        devKing
                        wrote on last edited by
                        #11

                        @jsulm I'll try installing 4.8.7
                        and I got
                        QT4 from offline Installer

                        jsulmJ 1 Reply Last reply
                        0
                        • D devKing

                          @jsulm I'll try installing 4.8.7
                          and I got
                          QT4 from offline Installer

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          @devKing Also as far as I know QtWebKit isn't part of Qt 5.8 (but is part of Qt4) - it really looks like you're using your Qt5 Kit! Can you please make sure you're using Qt4 Kit?

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          D 1 Reply Last reply
                          1
                          • jsulmJ jsulm

                            @devKing Also as far as I know QtWebKit isn't part of Qt 5.8 (but is part of Qt4) - it really looks like you're using your Qt5 Kit! Can you please make sure you're using Qt4 Kit?

                            D Offline
                            D Offline
                            devKing
                            wrote on last edited by
                            #13

                            @jsulm how can i know which kit I'm using?? 4.6.0 is the default one

                            jsulmJ 1 Reply Last reply
                            0
                            • D devKing

                              @jsulm how can i know which kit I'm using?? 4.6.0 is the default one

                              jsulmJ Offline
                              jsulmJ Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on last edited by
                              #14

                              @devKing In QtCreator click on "Projects" on the left side and see what is selected there. You can switch between kits easily there.

                              https://forum.qt.io/topic/113070/qt-code-of-conduct

                              D 1 Reply Last reply
                              1
                              • jsulmJ jsulm

                                @devKing In QtCreator click on "Projects" on the left side and see what is selected there. You can switch between kits easily there.

                                D Offline
                                D Offline
                                devKing
                                wrote on last edited by devKing
                                #15

                                @jsulm thank you
                                got it..It was 5.8.0
                                Now it will run i think...only some programming error is there ..
                                i'll mark this as solved..

                                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