Barry Smith
Barry Smith

Reputation: 319

Qt Creator won't allow me to run GUI Application

I am currently using Qt Creator on Ubuntu Linux 12.10, and I have just started a Qt GUI application. When I click the design tab, I come to this screen:

enter image description here

As you can see, the Build and Run buttons on the bottom left are greyed out, and I don't understand why. I have searched across the web already, and have found nothing. Can anybody give me a clue as to why this is happening? Have I done something wrong?

My QT Creator version is:

Qt Creator 2.5.2
Based on Qt 4.8.2 (64 bit)
Built on Aug 19 2012 at 15:28:17

The only reason that I switched to Qt Creator is that Qt Designer cannot build applications, or edit their source code. Are the two meant to be used together? If so, how?

Upvotes: 1

Views: 2278

Answers (4)

Aakash
Aakash

Reputation: 1900

Check whether you have configured the tool chains required. You will need to provide paths for gcc compiler and qmake for building applications from Qt Creator. Check the settings in Tools->Preferences.

Upvotes: 0

JustMaximumPower
JustMaximumPower

Reputation: 1277

Looking at the title bar of Qt Creator it looks like you only created (or opened) a .ui file. To compile something you need a project (a .pro file). Click File -> New and choose Application -> Qt Gui Application.

Upvotes: 0

alwences
alwences

Reputation: 56

By looking at the little computer-shaped icon, just above the run, debug and build buttons on the bottom left corner, it seems to me that either you may have not set up a version of the Qt properly, or you haven't selected one at all. Therefore no compilation is possible If you have installed the Qt Libraries, then you will need to "add" them to the QtCreator properteies.

In QtCreator go to Tools->Options-> Qt (or Qt Versions) and add a valid version of the qt libraries by selecting the path to the appropriate qmake.

If you are still having issues, I would recommend installing the Nokia-QtSDK, as it bundles the Qt libraries for different platforms (Desktop, Meego, Symbian, etc.) and it requires no extra set up.

Upvotes: 0

drahnr
drahnr

Reputation: 6886

You are in the "design" realm, goto the "edit" or "debug" pane.

Upvotes: 1

Related Questions