[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 += widgets

    TARGET = List7E
    TEMPLATE = app

    SOURCES += main.cpp

    HEADERS +=

    FORMS +=

    CONFIG += console

    Thank you in advance.

  • Lifetime Qt Champion

    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?

  • Lifetime Qt Champion

    @Alex_Sav said:


    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?

  • I used the online installer and I choose to install mingw and the latest VC compiler.

  • Lifetime Qt Champion

    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
    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.

  • Yes I have VS installed. So, should I remove VS compiler as I have mingw installed as well.

  • Lifetime Qt Champion

    Ahh. Ok. well both can work. But VC need extra setup to work from within

    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)

  • Nahhh. I just want to visualize bin packing problem for a project if I ever success to link graphviz with qt. So I'll use mingw. Thank you a lot.

  • Lifetime Qt Champion

    @Alex_Sav said:

    oh. Good luck.
    did you check out

  • Yeah but so far I couldn't even compile. Now that I figured out I will run to check if this good is good enough for me. Thank you a lot.

Log in to reply