How to config ActiveX controls and COM object in qt 4.7.4



  • Hi,
    I have open source of QT 4.7.4. I have work our sample GUI qt application. now i try excel file read and write through qt api. i am using ActiveX controls and COM object. i try QAxObject api use @QAxObject* excel = new QAxObject("Excel.Application", 0);@. but i got error.

    error is: error LNK2019: unresolved external symbol "public: __thiscall QAxObject::QAxObject(class QString const &,class QObject *)" (??0QAxObject@@QAE@ABVQString@@PAVQObject@@@Z) referenced in function _main

    how to config ActiveX controls and COM. please explain step by step or url please.

    Regards,
    M.Mathi



  • Did you add @#include <ActiveQt/QAxObject>@ to your source code and @CONFIG += qaxcontainer@ to your .pro (qmake) file?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.