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. Qt does not find some header files (Debian)

Qt does not find some header files (Debian)

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 4 Posters 665 Views 2 Watching
  • 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.
  • N Offline
    N Offline
    need4openid
    wrote on last edited by
    #1

    I just installed Qt on Debian Stretch from DVD (offline install).
    I can compile and run a simple, just a mainwindow project. But when it comes to include QJsonObject, it just cannot detect this file, but it does exist under my /usr/include directory.

    jsulmJ 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #5

      Hi,

      Maybe a silly question but are you sure you are using Qt 5 and not Qt 4 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      N 1 Reply Last reply
      1
      • N need4openid

        I just installed Qt on Debian Stretch from DVD (offline install).
        I can compile and run a simple, just a mainwindow project. But when it comes to include QJsonObject, it just cannot detect this file, but it does exist under my /usr/include directory.

        jsulmJ Online
        jsulmJ Online
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @need4openid Do you have

        QT += core
        

        in you pro file?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

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

          Hi
          Just as a note.
          All classes list their key/module to add to .pro file

          alt text

          1 Reply Last reply
          1
          • N Offline
            N Offline
            need4openid
            wrote on last edited by need4openid
            #4

            By default I have

            QT += core gui
            

            in my .pro file when I create a new desktop application project. So it is not because that.

            jsulmJ 1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #5

              Hi,

              Maybe a silly question but are you sure you are using Qt 5 and not Qt 4 ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              N 1 Reply Last reply
              1
              • N need4openid

                By default I have

                QT += core gui
                

                in my .pro file when I create a new desktop application project. So it is not because that.

                jsulmJ Online
                jsulmJ Online
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #6

                @need4openid Can you show how you include this header file?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • SGaistS SGaist

                  Hi,

                  Maybe a silly question but are you sure you are using Qt 5 and not Qt 4 ?

                  N Offline
                  N Offline
                  need4openid
                  wrote on last edited by
                  #7

                  @SGaist said in Qt does not find some header files (Debian):

                  Hi,

                  Maybe a silly question but are you sure you are using Qt 5 and not Qt 4 ?

                  No such question as silly question. That was it, I had both installed.
                  Thanks guys

                  1 Reply Last reply
                  1

                  • Login

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