Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
5.11.1
-
None
-
Win7 64bit + VS2017+Qt 5.11.1 for VS2015 32bit binary library
Description
Failed to get the Workbook.Sheets() property.
// code placeholder
Excel::Workbook *pWorkbook = 0;
Excel::Workbooks *pWorkbooks = excel.Workbooks();
pWorkbook = pWorkbooks->Add();
Excel::Sheets *pSheets = pWorkbook->Sheets();
Access vialation error in function 'Sheets()' when executing last line. The same code work under Qt 5.11.0.
The 'Sheets()' function is as below:
// code placeholder inline Excel::Sheets* Workbook::Sheets() const { Excel::Sheets* qax_pointer = 0; qRegisterMetaType<Excel::Sheets*>("Sheets*", &qax_pointer); qRegisterMetaType<Excel::Sheets>("Sheets", qax_pointer); QVariant qax_result = property("Sheets"); if (!qax_result.constData()) return 0; Q_ASSERT(qax_result.isValid()); return *(Excel::Sheets**)qax_result.constData(); }