tags:

views:

63

answers:

1

When installing Qt, I unchecked the MinGW installation option as I have it already installed. Now after installing I am not able to build an example program I found in a book. All the build options in the menu are disabled. the code I am trying to execute is:

#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    QLabel *label = new QLabel("Hello Qt!");
    label->show();
    return app.exec();
}

When I keep the mouse pointer above the QApplication or QLabel header - the yellow pop up says "No Such File or Directory". I am using the Qt Editor.

Does any one know what the problem might be? Thanks...

A: 

As far as I can see your problem is in the include headers which are not visible in your build environment. You should check somewhere in the QT editor settings where to set the path to the QT library include headers.

AlexKR
yeah I tried finding it but could not find any settings which allows me to set the header file path.
Manoj
Check compiler flags then, maybe QT editor uses them. You should set something like -I/your_path/to_qt_includes/
AlexKR