Missing QAxObject



  • Before creating this new topic, I have searched on Internet a solution to the problem I encounter with QAxObject class.

    When I try to include the class, Qt does not recongnize it :
    QAxObject : No such file or directory.

    Is it due to the install process of Qt on my computer ?
    Do I have to get the class on Internet ?

    If you have an answer to this problem, I would appreciate to get helped.

    Best regards,

    Domyphane


  • Qt Champions 2016

    @Domyphane
    Hello,
    Do you have the appropriate module in your project file:

    QT += axcontainer
    

    Kind regards.



  • @kshegunov said:

    QT += axcontainer

    Thanks for your answer, very kind of you.

    I have added Qt += axcontainer in my project.

    When I compile it, I have a new error message :

    error : qaxcontainer.lib : No such file or directory. I searched in the Qt directory if there was this file but it was not found.

    I study for the moment the C++ language (with code::blocks) and the Qt software.

    I have a professional project which is to re-write a tool I have developped with VBA (Inside Word) in C++. And during my training period, I am looking information about my project.

    Thanks again for your answer.

    Best regards,

    Domyphane


  • Qt Champions 2016

    @Domyphane
    Hello,
    This is the import library for the QtAx module. Are you sure the module is installed? How did you obtain Qt and what modules did you install?

    Kind regards.



  • @kshegunov Hello,
    Thanks for your piece of advice concerning my research to able connexion beween a Qt project and Microsoft Excel.
    You are asking me how I obtained Qt.

    I connected on the URL : www.qt.io/download
    There, 3 possibilities were given to me :

    • Commercial deployment,
    • In-house deployment, private use, or student use
    • Open source distribution under an LGPL or GPL license

    I chose the third one (Open source distribution under an LGPL or GPL license).

    Then I was asked to choose Yes - No - Not sure to the question "Are you prepared to make your application source code publicly available?" I chose Yes,

    Then I was asked to choose Yes - No - Not sure to the question "Are you able to comply with the obligations of the LGPL v3 (or GPL v2/v3) and/or does your corporation allow open source usage?". I chose Yes

    I clicked on the button "Get started" and on the button "Download Now".

    A file of 18 Mo was downloaded on my computer.

    From yesterday, I try to find help on the Internet (different sites not only Qt ones) and I read that the QAx container was not under an Open Source Distribution.

    Is this the reason why I have this problem ?

    It would be kind of you if you could give me a small explanation on the way to gest the axecontainer.lib and other things to get right ?

    Thanks a lot for your help.

    Best regards.

    Domyphane


  • Qt Champions 2016

    @Domyphane said:

    A file of 18 Mo was downloaded on my computer.

    This is (most probably) the Qt maintenance tool. You should start it and select which components you want to install. What compiler are you using? You should take care that the Qt library/ies you're installing are built with the same compiler you're using.

    Also, take a look here for more comprehensive information.

    Kind regards.



  • @kshegunov
    Hello and thanks for your explanations.

    For the moment, I do not feel enough at ease with the Qt's framework which means that I must go on discovering it before asking questions.

    As I said, my goal with C++ and Qt is to re-write a tool I have programmed in VBA for my employer and I want to be sure that I sall not be blocked in the fututre for some reasons.
    This is why I try to check if Qt can dialog with Excel which is possible (with QAxObject).

    But I want to be sure that the free version of Qt allows it (dialog with Excel).

    My compilor is Mingw 5.3.0 32 bits.

    Thanks.

    Kind regards,

    Domyphane


  • Qt Champions 2016

    @Domyphane
    Hello,

    But I want to be sure that the free version of Qt allows it (dialog with Excel).

    From what I read the said module is distributed under GPL which is more restrictive than the LGPL, and since I have no idea what or how you want to do, and since I'm not a lawyer, I don't know if you can use it for your work. Sorry.

    Kind regards.


Log in to reply
 

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