不能使用 Qt Xlsx
cannot use Qt Xlsx
我在 /opt
中安装了 Qt 5.15 Beta-2。我还从 here and built the Qt5::Xlsx module [qmake
, sudo make
, sudo make install
]. Now in /opt/Qt/5.15.0/gcc_64/include
there's a directory QtXlsx
but it contains only one file QtXlsxDepends
. No xlsxdocument.h
, xlsxcell.h
or anything like that, so Qt Creator says file not found
if I try to include them as in here.
下载了
sought-for headers 在 /opt/Qt/5.15.0/gcc_64/mkspecs/features/include/QtXlsx
中。所以我将 target_include_directories(target PRIVATE /opt/Qt/5.15.0/gcc_64/mkspecs/features/include/QtXlsx)
添加到我的 CMakeLists.txt
并且问题消失了。
我在 /opt
中安装了 Qt 5.15 Beta-2。我还从 here and built the Qt5::Xlsx module [qmake
, sudo make
, sudo make install
]. Now in /opt/Qt/5.15.0/gcc_64/include
there's a directory QtXlsx
but it contains only one file QtXlsxDepends
. No xlsxdocument.h
, xlsxcell.h
or anything like that, so Qt Creator says file not found
if I try to include them as in here.
sought-for headers 在 /opt/Qt/5.15.0/gcc_64/mkspecs/features/include/QtXlsx
中。所以我将 target_include_directories(target PRIVATE /opt/Qt/5.15.0/gcc_64/mkspecs/features/include/QtXlsx)
添加到我的 CMakeLists.txt
并且问题消失了。