uj5u.com熱心網友回復:
#include <QAxObject>然后 QAxObject *excel = new QAxObject();
就報這個錯誤
各位大佬幫忙
uj5u.com熱心網友回復:
很有可能是頭檔案重復包含了。uj5u.com熱心網友回復:
#include "mainwindow.h"#include "ui_mainwindow.h"
#include<ActiveQt/QAxObject>
#include <QDebug>
#include <QUuid>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
QAxObject *e = new QAxObject();
}
部分代碼是這樣的,沒出現頭檔案重復包含吧?
uj5u.com熱心網友回復:
你頭檔案加上#ifndef
#define
#endif
防止間接的多次包含
uj5u.com熱心網友回復:
你用的是哪個版本?轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/106867.html
標籤:Qt
上一篇:Qt 組合快捷鍵小鍵盤問題
