Results 1 to 7 of 7

Thread: Error to use QAxWidget

  1. #1
    Join Date
    Feb 2009
    Location
    Guangzhou,China
    Posts
    89
    Thanks
    17
    Qt products
    Qt4
    Platforms
    Windows

    Default Error to use QAxWidget

    I just test the an example of the C++ GUI programming with Qt4, the one to implement the media player. But fail, the following is some part the error information.

    playerwindow.cpp:2:21: QAxWidget: No such file or directory
    playerwindow.cpp: In constructor `PlayerWindow::PlayerWindow()':
    playerwindow.cpp:8: error: invalid use of undefined type `struct QAxWidget'
    playerwindow.h:6: error: forward declaration of `struct QAxWidget'
    playerwindow.cpp:9: error: invalid use of undefined type `struct QAxWidget'
    playerwindow.h:6: error: forward declaration of `struct QAxWidget'
    playerwindow.cpp:10: error: invalid use of undefined type `struct QAxWidget'
    playerwindow.h:6: error: forward declaration of `struct QAxWidget'
    playerwindow.cpp:11: error: invalid use of undefined type `struct QAxWidget'
    playerwindow.h:6: error: forward declaration of `struct QAxWidget'
    playerwindow.cpp:13: error: no matching function for call to `PlayerWindow::conn
    ect(QAxWidget*&, const char[27], PlayerWindow* const, const char[29])'
    ../4.4.3/include/QtCore/../../src/corelib/kernel/qobject.h:197: note: candidates
    are: static bool QObject::connect(const QObject*, const char*, const QObject*,
    const char*, Qt::ConnectionType)
    ../4.4.3/include/QtCore/../../src/corelib/kernel/qobject.h:303: note:
    bool QObject::connect(const QObject*, const char*, const char*, Qt::Connec
    tionType) const
    playerwindow.cpp:15: error: no matching function for call to `PlayerWindow::conn
    ect(QAxWidget*&, const char[39], PlayerWindow* const, const char[41])'
    ../4.4.3/include/QtCore/../../src/corelib/kernel/qobject.h:197: note: candidates
    are: static bool QObject::connect(const QObject*, const char*, const QObject*,
    const char*, Qt::ConnectionType)
    ../4.4.3/include/QtCore/../../src/corelib/kernel/qobject.h:303: note:
    bool QObject::connect(const QObject*, const char*, const char*, Qt::Connec
    tionType) const
    playerwindow.cpp:17: error: no matching function for call to `PlayerWindow::conn
    ect(QAxWidget*&, const char[32], PlayerWindow* const, const char[34])'



    The pro file as follow:

    TEMPLATE = app
    CONFIG += qaxcontainer
    HEADERS = playerwindow.h
    SOURCES = main.cpp \
    playerwindow.cpp

    I don't know where comes the error. Can you help me to correct it? Thanks!!!!

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Error to use QAxWidget

    Did you include the header files properly ?
    Also is your Qt Commerical edition ? ActiveX is not available on Opensource I guess

  3. #3
    Join Date
    Feb 2009
    Location
    Guangzhou,China
    Posts
    89
    Thanks
    17
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Error to use QAxWidget

    //playerwindow.cpp
    #include <QtGui>
    #include <QAxWidget>

    #include "playerwindow.h"

    I do include the header file properly.

  4. #4
    Join Date
    May 2009
    Posts
    61
    Thanks
    5
    Thanked 6 Times in 6 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Error to use QAxWidget

    I don't know if this still is important in the latest SDK... but is the license file located in your home directory?

  5. #5
    Join Date
    Feb 2009
    Location
    Guangzhou,China
    Posts
    89
    Thanks
    17
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Error to use QAxWidget

    Mine is opensource, Can I use the Commercial function with the opensource and a licensen ?

    Reinstall one is a troublesome bussiness.

  6. #6
    Join Date
    May 2009
    Posts
    61
    Thanks
    5
    Thanked 6 Times in 6 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Error to use QAxWidget

    I don't think so. Probably mingw is missing needed include files...

  7. #7
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Error to use QAxWidget

    I dont think you can use ActiveX widget with open source.
    You need commercial license for that.

Similar Threads

  1. QAxWidget
    By rajeshs in forum Qt Programming
    Replies: 1
    Last Post: 5th September 2008, 05:13
  2. QAxWidget hide other widgets in it's area
    By sprnshld in forum Qt Programming
    Replies: 1
    Last Post: 27th July 2008, 15:56
  3. Inherit the QAxWidget
    By MrShahi in forum Qt Programming
    Replies: 3
    Last Post: 29th April 2008, 08:06
  4. QAxWidget
    By chak_med in forum Newbie
    Replies: 1
    Last Post: 10th September 2006, 20:05
  5. QAxWidget Properties
    By ToddAtWSU in forum Newbie
    Replies: 1
    Last Post: 13th February 2006, 17:45

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.