QtXlsxWriter
QtXlsxWriter copied to clipboard
5.6 build error
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();
That's easy to fix :
Add #include <QVector>
and replace "QList" by "QVector" on that line
https://github.com/dbzhang800/QtXlsxWriter/pull/109
When will this be merged please?
@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.
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();
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