Unsolved 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 ?
-
the link I get from is on the page that I follow to use the library I put it in my post from the GitHub, if this, not the right way to get this lib please post the link of the to get the lib
-
Note that it's not an official Qt module.
There are several forks of that module, which one are you using ?
-
I use the one I download it from the link in the post I don't know others
-
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 ?
-
it compiles ok now when I use it with MSVC not MinGW i don't know why is that ?
-
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 -
yes i don't have QZipReader and QZipWriter ok i will try them now Thank you
-
ok please can you tell me how to make QZipReader and QZipWriter available
-
Did you found the
qzipreader_p.h
andqzipwriter_p.h
? -
no what i have is xlsxzipreader_p.h and xlsxzipwriter_p.h
I search for Qzip library and i compile it to work alone
should I add it to my project to make example work ?
if that rigth how to do that please ? -
I meant in your Qt installation.