dbzhang800 / QtXlsxWriter

.xlsx file reader and writer for Qt5
http://qtxlsx.debao.me
Other
1.24k stars 632 forks source link

5.6 build error #108

Open Climax777 opened 8 years ago

Climax777 commented 8 years ago

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 commented 8 years ago

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

mabrand commented 8 years ago

https://github.com/dbzhang800/QtXlsxWriter/pull/109

Climax777 commented 8 years ago

When will this be merged please?

vinokanth92 commented 7 years ago

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

error: no member named 'toList' in 'QList'

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 commented 7 years ago

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 commented 7 years ago

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