QT4.6.2 Project on QT 5.8.0 (QTCreater 4.2.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!!!@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, substitutingset
forexport
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. -
Re: QT4.6.2 Project on QT 5.8.0 (QTCreater 4.2.1)
Ty for the reply
And ya I'm using Windows -
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!!!@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.
-
@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.
@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.. -
@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.. -
@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 -
@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 -
@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"@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? -
@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? -
@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?
-
@devKing In QtCreator click on "Projects" on the left side and see what is selected there. You can switch between kits easily there.