Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED]Cannot open include file: 'QGraphicsView' : No such file or directory. Qt 5.5

[SOLVED]Cannot open include file: 'QGraphicsView' : No such file or directory. Qt 5.5

Scheduled Pinned Locked Moved General and Desktop
librabries
11 Posts 2 Posters 4.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alex_Sav
    wrote on last edited by Alex_Sav
    #1

    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.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      hi and welcome
      Could you try the 40000 example and see if it just runs ?
      Just to be sure all is ok.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Alex_Sav
        wrote on last edited by Alex_Sav
        #3

        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?

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Alex_Sav
            wrote on last edited by
            #5

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

            mrjjM 1 Reply Last reply
            0
            • A Alex_Sav

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

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by mrjj
              #6

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

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Alex_Sav
                wrote on last edited by
                #7

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

                mrjjM 1 Reply Last reply
                0
                • A Alex_Sav

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

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

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

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Alex_Sav
                    wrote on last edited by
                    #9

                    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.

                    mrjjM 1 Reply Last reply
                    0
                    • A Alex_Sav

                      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.

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @Alex_Sav said:

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

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        Alex_Sav
                        wrote on last edited by
                        #11

                        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.

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved