1
0
mirror of https://github.com/QtExcel/QXlsx.git synced 2025-01-30 05:02:52 +08:00

Update WebServer example for 9ab612f

This commit is contained in:
Jay Two 2023-01-04 13:08:48 +09:00
parent 52e834540e
commit c9fd393e1f
2 changed files with 13 additions and 4 deletions

View File

@ -11,8 +11,11 @@ CONFIG += console
CONFIG -= app_bundle CONFIG -= app_bundle
# C++14 or higher version is required. # C++14 or higher version is required.
CONFIG += c++14 # CONFIG += c++14
QMAKE_CXXFLAGS += -std=c++14 # QMAKE_CXXFLAGS += -std=c++14
# C++17 or higher version is required.
CONFIG += c++17
QMAKE_CXXFLAGS += -std=c++17
macx { macx {
QMAKE_CXXFLAGS += -stdlib=libc++ QMAKE_CXXFLAGS += -stdlib=libc++

View File

@ -133,10 +133,16 @@ bool loadXlsx(QString fileName, QString& strHtml)
int row = cl.row - 1; int row = cl.row - 1;
int col = cl.col - 1; int col = cl.col - 1;
QSharedPointer<Cell> ptrCell = cl.cell; // cell pointer // Update ShowConsole example for 9ab612f
// {{
// QSharedPointer<Cell> ptrCell = cl.cell; // cell pointer
std::shared_ptr<Cell> ptrCell = cl.cell; // cell pointer
// value of cell // value of cell
QVariant var = cl.cell.data()->value(); // QVariant var = cl.cell.data()->value();
QVariant var = ptrCell->value();
// }}
QString str = var.toString(); QString str = var.toString();
cellValues[row][col] = str; cellValues[row][col] = str;