Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Regarding QAxBase & QAxObject

Regarding QAxBase & QAxObject

Scheduled Pinned Locked Moved General and Desktop
5 Posts 5 Posters 8.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Indrajeet
    wrote on last edited by
    #1

    Hi All

    I have created a QT Console Application, but when i include QAxBase & QAxObject header files it gives me following
    error C1083: Cannot open include file: 'QAxBase': No such file or directory

    My code:
    @
    #include <QtCore/QCoreApplication>
    #include <QAxBase>
    #include <QAxObject>
    #include <objbase.h>
    #include <unknwn.h>
    #include <QUuid>
    int main(int argc, char *argv[])
    {
    QCoreApplication a(argc, argv);
    return a.exec();
    }
    @

    How to resolve this error.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Could you post your .pro file contents?

      I thing you forgot to add support there for the module.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        giesbert
        wrote on last edited by
        #3

        AFAIK, you have to add Qt += activeqt in the pro file.

        Nokia Certified Qt Specialist.
        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          According to the "docs":http://developer.qt.nokia.com/doc/qt-4.7/activeqt-container.html it should be

          @
          CONFIG += qaxcontainer
          @

          in the .pro.

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jsveiga
            wrote on last edited by
            #5

            Excuse me for bringing up such an old thread from the museum, but it's the first google hit when searching for

            Qt5 QAxObject: No such file or directory

            So, if someone gets here with the same problem but on Qt 5:

            1 - on your .pro, add:
            CONFIG += axcontainer
            (it was qaxcontainer on qt 4)
            and "axcontainer" to the QT += line too

            2 - on the includes use
            #include <ActiveQt/QAxBase>
            #include <ActiveQt/QAxObject>
            etc

            br,
            Joao S Veiga

            1 Reply Last reply
            2

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved