Qt Xlsx problem in compile the project
-
I try to use Qt Xlsx this library in Qt to extract data from an excel file i follow the steps here to use the library in section of Usage (2)
I copy the project file src and add it ro Qt .pro file asinclude($$PWD/src/xlsx/qtxlsx.pri)
and use the example code to extract data but i got this 2 error and they point to erro in code of the library !!!
D:\WorkPlace\c++ Projects\TestExtarctFromXLS\src\xlsx\xlsxzipreader.cpp:51: error: invalid use of incomplete type 'class QVector<QZipReader::FileInfo>' QList<QZipReader::FileInfo> allFiles = m_reader->fileInfoList(); ^
second is
C:\Qt\Qt5.6.1\5.6\mingw49_32\include\QtCore\qtypeinfo.h:182: error: declaration of 'class QVector<QZipReader::FileInfo>' Q_DECLARE_MOVABLE_CONTAINER(QVector); ^
so what the problem with my linkage i think the library should works fine with no problem as there are many developer use it before !
please any one use this library before or have any idea to solve this help me
iam using Qt 5.6.1 Mingw
windows 10
Thanks -
Hi,
Where did you get the code of that module ?
-
Note that it's not an official Qt module.
There are several forks of that module, which one are you using ?
-
You should rather use a more recent version. Take a look at the fork list.
Note that it's also written at the top that you need the private headers of the qtbase module for QZipReader and QZipWriter. Do you have them available ?
-
Check the include paths
-
ok, what I try is to find another one on Github I found a one I can use it with shared lib, not module when I compile it with MSVC without start to use it just on link it and it compiles but when I try to run the example I get many undefine references !
when I try to use the module with MSVC I get the same error as Mingw mention above -
Did you found the
qzipreader_p.h
andqzipwriter_p.h
? -
I meant in your Qt installation.