QtXlsxWriter icon indicating copy to clipboard operation
QtXlsxWriter copied to clipboard

5.6 build error

Open Climax777 opened this issue 9 years ago • 6 comments

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();

Climax777 avatar Feb 08 '16 10:02 Climax777

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

ghost avatar Feb 13 '16 14:02 ghost

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

mabrand avatar Mar 19 '16 13:03 mabrand

When will this be merged please?

Climax777 avatar Apr 16 '16 05:04 Climax777

@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.

vinokanth92 avatar Mar 06 '17 07:03 vinokanth92

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();

ghost avatar Mar 06 '17 07:03 ghost

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

VSRonin avatar Mar 06 '17 07:03 VSRonin