[SOLVED]Cannot open include file: 'QGraphicsView' : No such file or directory. Qt 5.5
-
Hello, I'm new to Qt so I'm trying to learn how it works and everything. I have a project about binary trees. When I debug the project I get the above message. My debugger is GNU gdb 7.8 for MinGW 4.9.2 32bit. Probably I have some missing path or something in my .pro file but I don't know what I have to do. This is my .pro file.
QT += core gui
QT += widgetsTARGET = List7E
TEMPLATE = appSOURCES += main.cpp
BST.cppHEADERS +=
BST.hFORMS +=
CONFIG += console
Thank you in advance.
-
hi and welcome
Could you try the 40000 example and see if it just runs ?
Just to be sure all is ok. -
Hello and thank you for so quick response. Yes it's running. I just noticed that I can't use the appropriate debugger that I used at the chip example (GNU gdb 7.8 for MinGW 4.9.2 32bit).
I just have Desktop Qt 5.5.0 MSVC2013 64bit and Windows Runtime 64bit. I added the missing debugger but can I, somehow, fix the other two as well? -
@Alex_Sav said:
MSVC2013
Hi if you have VC compiler then you also need the addon, i think.
Did you also download that?Im not sure why there is a mismatch.
Normally you would download
either for mingw(gcc) or for visual studio.
mingw normally just work out of the box, so I must ask which
download you used to install Qt? -
@Alex_Sav
It do not come with the actual VC compiler. only support for it.
So you assume you have Visual Studio already installed?for instance im using
http://www.qt.io/download-open-source/#section-2
Qt 5.5.0 for Windows 32-bit (MinGW 4.9.2, 959 MB)as I have no Visual Studio.
So I wonder if there was a slight mix up when installing as normally all works out of the box.
-
@Alex_Sav
Ahh. Ok. well both can work. But VC need extra setup to work from within
Studio.As far as I know, using Creator with mingw can work with with VS compiler installed.
(so no need to remove)
But maybe uninstall Qt. then install and select only mingw OR VC to have it
configured correctly.
Im pretty sure you could use both and have different configs
but it would all have to be installed as kits and setup with paths etc.So If you only want to play around with Qt then maybe just use mingw and Creator ?
(unless you loooove VS then use that) -
@Alex_Sav said:
oh. Good luck.
did you check out
https://github.com/nbergont/qgv