Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run button is disabled in Qt Creator

This happens even on a freshly created, empty project.

The Run (and also Debug) buttons are disabled for the Qt5 configuration (they're enabled for the Qt4 configuration). The build button is not disabled, however, and it works - I can build the project, but I can't run it from Qt Creator.

They are disabled in the Build menu as well. Everything is enabled and works fine for the Qt4 configuration, however.

It's a Qt/C++ project, on Windows 7 (32-bit).

enter image description hereenter image description here

Edit:

I found a couple of related questions - RUN button no enable in QtCreator for QML project and http://qt-project.org/forums/viewthread/15737, but they have slightly different circumstances, and they don't show a clear solution. I'm posting them in case they help, though.

Edit 2:

I checked the run configuration for Qt5, as suggested by @Blueman and @Fabian, and the executable field is empty (and also disabled), even though the Build configuration correctly specifies the path. Moreover, I get this error - "The .pro file untitled2.pro could not be parsed." Here's a screenshot:

enter image description here

like image 770
sashoalm Avatar asked Jun 02 '14 17:06

sashoalm


People also ask

Is the build button disabled in Qt Creator?

The build button is not disabled, however, and it works - I can build the project, but I can't run it from Qt Creator. They are disabled in the Build menu as well. Everything is enabled and works fine for the Qt4 configuration, however. It's a Qt/C++ project, on Windows 7 (32-bit).

How do I set up run settings in Qt Creator?

The run settings to specify depend on the type of the project and on the kit that you build and run the project with. Qt Creator automatically creates run configurations for your project. To view and modify them, select Projects > Build & Run > Run.

Does Qt Quick work with Kubuntu 11?

I'm on a Kubuntu 11 system and trying out my first Qt Quick project. As this is Kubuntu I'm just running with the Qt that came with it, which has worked fine so far. I asked Qt Creator to create the sample "Hello World" project from Qt Quick. But the design button was grayed out, as were the run buttons.

Where does Qt Creator copy the files to?

When you run the application, Qt Creator copies the files to the connected device. The run settings display the path to the executable file on the development host and on the device.


2 Answers

I just encountered a similar issue with the AUR package of the Qt Creator on arch linux.

The solution was to download the original installer from the qt website and execute the .run file (After you made it executable):

https://www.qt.io/download

You are welcome :)

like image 96
Ingo Mi Avatar answered Sep 19 '22 04:09

Ingo Mi


Try to change or add the startup configuration, it will help to update the paths and settings. You now:

Run configuration: untitled-2
like image 31
shaman888 Avatar answered Sep 18 '22 04:09

shaman888