摘要:
bool ExcelIO::saveFromTable(DataTable *table, QString tablename, QString filePath) { if (filePath.isEmpty() || tablename.isEmpty()){ emit signal_SaveAsSuccess(false); return false; } //把"test.xlsx"中// 阅读全文
摘要:
MainWidget* mainWindow = nullptr; foreach (QWidget *w, qApp->topLevelWidgets()){ if (MainWidget* mainWidget = qobject_cast<MainWidget*>(w)) mainWindow = mainWidget; } 阅读全文