Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Invalid include path in Qt files
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
Did you actually install the private headers? Are they available? What buildsystem do you use? With qmake you need to add 'QT += widgets-private'
I use Visual Studio 2019 and have any options for install private headers.
have some headers and private header
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.
Solved. Use include paths
Pablo J. Rogina last edited by
Great. Please don't forget to mark your post as such!