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:
parent
52e834540e
commit
c9fd393e1f
@ -11,8 +11,11 @@ CONFIG += console
|
||||
CONFIG -= app_bundle
|
||||
|
||||
# C++14 or higher version is required.
|
||||
CONFIG += c++14
|
||||
QMAKE_CXXFLAGS += -std=c++14
|
||||
# CONFIG += c++14
|
||||
# QMAKE_CXXFLAGS += -std=c++14
|
||||
# C++17 or higher version is required.
|
||||
CONFIG += c++17
|
||||
QMAKE_CXXFLAGS += -std=c++17
|
||||
|
||||
macx {
|
||||
QMAKE_CXXFLAGS += -stdlib=libc++
|
||||
|
@ -133,10 +133,16 @@ bool loadXlsx(QString fileName, QString& strHtml)
|
||||
int row = cl.row - 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
|
||||
QVariant var = cl.cell.data()->value();
|
||||
// QVariant var = cl.cell.data()->value();
|
||||
QVariant var = ptrCell->value();
|
||||
// }}
|
||||
|
||||
QString str = var.toString();
|
||||
|
||||
cellValues[row][col] = str;
|
||||
|
Loading…
x
Reference in New Issue
Block a user