问题
I am trying to install Qt5 on OS-X 10.7.5, using the prebuilt binary version.
Everything seems to be OK, QtCreator is installed and it works.
However when I create a new project, I get the error: "No valid kit found". The Qt version detected seems to be the old Qt4 one only.
The file I used for the installation is the one that contains everything: Qt5, QtCreator, ... (398 MB), but when installed only the directory with QtCreator seems to be available.
Should I uninstall Qt4 first?
Is it a problem anybody else had?
Thank you.
回答1:
Qt Creator 2.6 introduced the concept of "Kits." You need to have at least one kit properly configured with a Qt version and tool chain. Unfortunately, the SDK install doesn't configure the kit for you and the documentation is just outright lacking.
Here's some information on how to setup a kit. The page is not even linked from the main doc pages. http://doc-snapshot.qt-project.org/qtcreator-2.6/creator-targets.html
回答2:
In QtCreator, you can set the location of the Qt SDK you want to use.
See this guide at the official website.
来源:https://stackoverflow.com/questions/14424158/qt5-installation-problems