1
votes

I'm new to C++ and programming, and trying to work on a little project, using Qt/Qt Creator .

I was using the MinGW compiler, but especially for this project I will need to use the MSVC compiler (since I need QtWebEngineWidgets).

I have Qt 5.8 and I'm using Qt Creator. I downloaded Microsoft Visual Studio 2015 (Community), and also installed wdk and winsdk 2015 (1703 version) from Microsft's website, and configured my kit. It took a while!

Unfortunately, i have an error when I try to run my program: looks impossible to include QtWidgets or QtWebEngineWidgets.

When I changed the kit of my project (from MinGW to MSVC 2015), I tried to run it but I had another error:

Error from the original project

I wanted to avoid it by creating a new Qt empty project, and I just copied/pasted the source code. Now it looks a bit better, but as you can see I can't include QtWebEngineWidgets and QtWidgets.

Here is the C1083 error

This is what the compiler says

Note: After I added #include <QApplication> and #include <QPushButton> in the main, and he's doing the same thing with QApplication but don't say anything about QPushButton.

Any idea about what happend?

Thank you very much

1
You need to find the setting for 'additional include dirs'. I'm not sure where it is, check project properties.Jay
You question is useless for future seekers because you use images or what is worse references to images.S.M.

1 Answers

1
votes

Right click on project on visual studio -> click properties (on the bottom) -> go to C/C++ -> all options -> find additional include directories and there add path to your QT include folder.