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. Invalid include path in Qt files
Forum Updated to NodeBB v4.3 + New Features

Invalid include path in Qt files

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 2.6k Views 1 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.
  • M Offline
    M Offline
    mk33
    wrote on last edited by
    #1

    Hello, I use in my program files from Qt Xlsx library. I have a problem with file xlxszipreader.cpp where I use include

    # include <QtGui/5.12.6/QtGui/private/qzipreader_p.h>
    

    and qzipwriter_p.h use invalid include

    #include <QtGui/private/qtguiglobal_p.h>
    
    C:\Qt\5.12.6\msvc2017_64\include\QtGui\5.12.6\QtGui\private\qzipwriter_p.h(42,10): fatal error C1083: Cannot open include file: 'QtGui/private/qtguiglobal_p.h': No such file or directory
    

    Include path in project

    $(QTDIR)\include\QtGui
    

    msvc 2019
    Qt 5.12.6

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @mk33 said in Invalid include path in Qt files:

      qtguiglobal_p.h

      Did you actually install the private headers? Are they available? What buildsystem do you use? With qmake you need to add 'QT += widgets-private'

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • M Offline
        M Offline
        mk33
        wrote on last edited by
        #3

        I use Visual Studio 2019 and have any options for install private headers.

        In dir
        c:\Qt\5.12.6\msvc2017_64\include\QtGui
        have some headers and private header
        c:\Qt\5.12.6\msvc2017_64\include\QtGui\5.12.6\QtGui\private\qtguiglobal_p.h

        Christian EhrlicherC 1 Reply Last reply
        0
        • M mk33

          I use Visual Studio 2019 and have any options for install private headers.

          In dir
          c:\Qt\5.12.6\msvc2017_64\include\QtGui
          have some headers and private header
          c:\Qt\5.12.6\msvc2017_64\include\QtGui\5.12.6\QtGui\private\qtguiglobal_p.h

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @mk33 said in Invalid include path in Qt files:

          I use Visual Studio 2019

          I don't care for the IDE, I asked if you use qmake or cmake. But I would guess qmake so add the line I wrote above to your pro file.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mk33
            wrote on last edited by
            #5

            Solved. Use include paths

            $(QTDIR)\include\QtCore
            $(QTDIR)\include\QtCore\5.12.6

            Pablo J. RoginaP 1 Reply Last reply
            0
            • M mk33

              Solved. Use include paths

              $(QTDIR)\include\QtCore
              $(QTDIR)\include\QtCore\5.12.6

              Pablo J. RoginaP Offline
              Pablo J. RoginaP Offline
              Pablo J. Rogina
              wrote on last edited by
              #6

              @mk33 said in Invalid include path in Qt files:

              Solved.

              Great. Please don't forget to mark your post as such!

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              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