Closed shuparb closed 5 years ago
Dear @ShubhamParab
If you are using a shadow build on Qt, look for the corresponding xlsx file in the build- * path.
If the program runs normally, an xlsx file will be created.
No xlsx file in C:\Users\Shubham\Documents\QtProjects\build-HelloQXlsx-Desktop_Qt_5_10_1_MinGW_32bit-Release\release
qmake warning: Project MESSAGE: QXLSX_PARENTPATH is not empty. Project MESSAGE: ./ Project MESSAGE: QXLSX_HEADERPATH is not empty. Project MESSAGE: ./header/ Project MESSAGE: QXLSX_SOURCEPATH is not empty. Project MESSAGE: ./source/ Project MESSAGE: compiling for windows g++. mingw or msys or cygwin. Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version. Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point. Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned! Project MESSAGE: QXLSX_PARENTPATH is not empty. Project MESSAGE: ./ Project MESSAGE: QXLSX_HEADERPATH is not empty. Project MESSAGE: ./header/ Project MESSAGE: QXLSX_SOURCEPATH is not empty. Project MESSAGE: ./source/ Project MESSAGE: compiling for windows g++. mingw or msys or cygwin. Project MESSAGE: QXLSX_PARENTPATH is not empty. Project MESSAGE: ./ Project MESSAGE: QXLSX_HEADERPATH is not empty. Project MESSAGE: ./header/ Project MESSAGE: QXLSX_SOURCEPATH is not empty. Project MESSAGE: ./source/ Project MESSAGE: compiling for windows g++. mingw or msys or cygwin.
compiling warnings: \HelloQXlsx\source\xlsxcell.cpp: -1: In member function 'QVariant QXlsx::Cell::readValue() const': \HelloQXlsx\source\xlsxcell.cpp:125: warning: unused variable 'noFormatIndex' [-Wunused-variable] int noFormatIndex = fmt.numberFormatIndex(); ^ \HelloQXlsx\source\xlsxstyles.cpp:999: warning: unused parameter 'reader' [-Wunused-parameter] bool Styles::readCellStyleXfs(QXmlStreamReader &reader) ^ \HelloQXlsx\source\xlsxstyles.cpp:999: warning: unused parameter 'reader' [-Wunused-parameter] bool Styles::readCellStyleXfs(QXmlStreamReader &reader) ^ \HelloQXlsx\source\xlsxcell.cpp:90: warning: zero as null pointer constant \HelloQXlsx\source\xlsxcell.cpp:125: warning: unused variable 'noFormatIndex'
Is it in debug mode? If you are in debug mode, see the debug path.
no, it's in release mode & \build-HelloQXlsx-Desktop_Qt_5_10_1_MinGW_32bit-Release\release have all the object files and executable except xlsx file \build-HelloQXlsx-Desktop_Qt_5_10_1_MinGW_32bit-Release\debug is empty
I do not know the cause now.
Please write the result or log of the executable program.
Hi. @ShubhamParab
:one: I have added debugging information for testing the HelloWorld example.
:two: I tested it on old Qt (5.0.2 / MingW32).
:three: The current (build) mode is the release mode.
:four: The test results are as follows.
[debug] success to write xlsx file
[debug] current directory is "C:/workspace/github/QXlsx/build-HelloWorld-Desktop_Qt_5_0_2_MinGW_32bit-Release"
[debug] success to load xlsx file.
QVariant(QString, "Hello Qt!")
Press <RETURN> to close this window...
:five: Check your current directory.
Thanks @j2doll
Followed all installation steps & tried: https://github.com/j2doll/QXlsx/tree/master/HelloWorld code The program compiled successfully and stuck at console window .xlsx file also not created