[Solved] Qt Creator Run button disabled
-
wrote on 22 Jan 2014, 12:47 last edited by
Hello everyone,
the run button of Qt Creator is disabled. I tried to find some options that would solve the problem but I "Build & Run" options don't seem to have something that would've triggered the problem.
I downloaded Qt Creator separately, and I'm using different versions of Qt that I compiled on my own.
Please advise.
Thank you.
-
Your project needs to be configured. Either remove .pro.user file from your project folder, or go into project options and see if it is configured.
-
wrote on 22 Jan 2014, 13:24 last edited by
Hello,
thank you for your reply. I did remove the .pro.user file, and I still face this problem. I tried many different projects and they all yield the same problem.
Can you please explain what part of the Project Options has to be "configured"? The word "configured" is very general and isn't clear for me.
Regards.
-
In that case something else must be wrong. By "configure" I mean that a fresh project added to Qt creator will automatically prompt you to configure it: it is a button clearly visible in the Projects pane, and it is enough to just click it. But if deleting .pro.user and reconfiguring, I think something else is going on.
Have you changed anything in your setup lately? Do all Kits contain a compiler and Qt version?
-
wrote on 22 Jan 2014, 14:31 last edited by
The compilation is OK. I have VS2010 and VS2012 and I have Qt 4.8.5 and 5.2 for both VS versions. All this works with no problems, but run button is disabled. What I did recently is compile those Qt versions from sources and add them to Qt Creator, which is independent of the Qt sources.
Following is an example of the Qt versions I use.
@
Name:
Qt 5.2.0 (Qt5.2.0_32_VS2010_static)
ABI:
x86-windows-unknown-pe-32bit
Source:
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase
mkspec:
win32-msvc2010
qmake:
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase\bin\qmake.exe
Default:
debug
Version:
5.2.0
QMAKE_SPEC
win32-msvc2010
QMAKE_VERSION
3.0
QMAKE_XSPEC
win32-msvc2010
QT_HOST_BINS
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase\bin
QT_HOST_DATA
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase
QT_HOST_LIBS
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase\lib
QT_HOST_PREFIX
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase
QT_INSTALL_ARCHDATA
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase
QT_INSTALL_BINS
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase\bin
QT_INSTALL_CONFIGURATIONQT_INSTALL_DATA
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase
QT_INSTALL_DEMOS
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase\examples
QT_INSTALL_DOCS
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase\doc
QT_INSTALL_EXAMPLES
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase\examples
QT_INSTALL_HEADERS
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase\include
QT_INSTALL_IMPORTS
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase\imports
QT_INSTALL_LIBEXECS
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase\bin
QT_INSTALL_LIBS
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase\lib
QT_INSTALL_PLUGINS
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase\plugins
QT_INSTALL_PREFIX
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase
QT_INSTALL_QML
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase\qml
QT_INSTALL_TESTS
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase\tests
QT_INSTALL_TRANSLATIONS
D:\Qt\Qt5.2.0_32_VS2010_static\qtbase\translations
QT_SYSROOTQT_VERSION
5.2.0
@ -
Hi,
Did you update Qt Creator to 3.0.0 ? That version is needed to run 5.2.0
-
wrote on 24 Jan 2014, 16:24 last edited by
I didn't know that existed. I'll update and inform you. Thanks.
-
wrote on 24 Jan 2014, 16:27 last edited by
Thank you for the suggestion. Installing Qt 3 solved the problem.
-
wrote on 23 May 2020, 13:20 last edited by
This Issue seems quite old, for anyone who just wanna bring their Qt Creator back to work, here is some tricks I learned from somewhere else, share with you.
Qt Creator Version: 4.11.0 Based on Qt 5.14.0
[quick solution]: right click <sources> folder under project tree, add some random file. After that the "Run" button activated again, this is definitely a Qt Creator bug.The reason I come up with this Bug is: I added created new subproject for unit test, and I delete or remove it somehow, and the run button just not working anymore, even after I restart the Qt Creator, until I found the trick above somewhere in youtube.
I hope it helps any single one who is struggling.