Home > Mobile >  Qt creator redefine the problem
Qt creator redefine the problem

Time:10-03

CodePudding user response:

# include & lt; QAxObject>

Then the QAxObject excel=new QAxObject ();

So this error
, help

CodePudding user response:

Is likely to be repeatedly contains header files,

CodePudding user response:

# include "mainwindow. H"
# include "ui_mainwindow. H"

# include
# include & lt; QDebug>
# include & lt; QUuid>


MainWindow: : MainWindow (QWidget * parent) :
QMainWindow (parent),
UI (new UI: : MainWindow)
{
The UI - & gt; SetupUi (this);
QAxObject * e=new QAxObject ();
}



Part of the code is that didn't appear header files repeated included?


CodePudding user response:

Your header files plus
# # ifndef
# define
# endif
To prevent indirect contains many times

CodePudding user response:

Which version are you using?
  •  Tags:  
  • Qt
  • Related