Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.6 build error #108

Open
Climax777 opened this issue Feb 8, 2016 · 6 comments
Open

5.6 build error #108

Climax777 opened this issue Feb 8, 2016 · 6 comments

Comments

@Climax777
Copy link

Build error with latest 5.6 beta

xlsxzipreader.cpp: In member function ‘void QXlsx::ZipReader::init()’:
xlsxzipreader.cpp:51:66: error: conversion from ‘QVector<QZipReader::FileInfo>’ to non-scalar type ‘QList<QZipReader::FileInfo>’ requested
     QList<QZipReader::FileInfo> allFiles = m_reader->fileInfoList();
@ghost
Copy link

ghost commented Feb 13, 2016

That's easy to fix :
Add #include <QVector>
and replace "QList" by "QVector" on that line

@mabrand
Copy link
Contributor

mabrand commented Mar 19, 2016

#109

@Climax777
Copy link
Author

When will this be merged please?

@vinokanth92
Copy link

vinokanth92 commented Mar 6, 2017

@OlivierDelbeke I did that, it doesn't work
my error is

error: no member named 'toList' in 'QListQZipReader::FileInfo'

Its weird because the project was working fine until I tried to compile in release mode. In release mode I get this error, but in debug mode I don't. Please help.

@ghost
Copy link

ghost commented Mar 6, 2017

Just tested and got the same result (in both debug and release modes). Just change line 51 of xlsxzipreader.cpp to
QVector<QZipReader::FileInfo> allFiles = m_reader->fileInfoList();

@VSRonin
Copy link

VSRonin commented Mar 6, 2017

The author of this repository is not maintaining it any more, use https://github.com/VSRonin/QtXlsxWriter for a version that compiles with modern Qt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants