[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
    BST.cpp

    HEADERS +=
    BST.h

    FORMS +=

    CONFIG += console

    Thank you in advance.


  • Qt Champions 2016

    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?


  • Qt Champions 2016

    @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?



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


  • Qt Champions 2016

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



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


  • Qt Champions 2016

    @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)



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


  • Qt Champions 2016

    @Alex_Sav said:

    oh. Good luck.
    did you check out
    https://github.com/nbergont/qgv



  • 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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.