Results 1 to 4 of 4

Thread: Inherit the QAxWidget

  1. #1
    Join Date
    Jan 2008
    Posts
    72
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Unhappy Inherit the QAxWidget

    hello everyone ........I wana play flash file within my application using QAxWidget....
    So I want to inherit the QAxWidget Class to my class but On compiling its giving error which is as follows.............
    error C2248: 'QAxWidget::staticMetaObject' : cannot access private member declared in class 'QAxWidget'
    If anyone has any idea to remove this error plz tell me ...........
    thanx in advance
    Last edited by MrShahi; 28th April 2008 at 11:04.

  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: Inherit the QAxWidget

    Are u using signal, slot in the inherited class ??

    From the docs :
    Warning: You can subclass QAxWidget, but you cannot use the Q_OBJECT macro in the subclass (the generated moc-file will not compile), so you cannot add further signals, slots or properties. This limitation is due to the metaobject information generated in runtime. To work around this problem, aggregate the QAxWidget as a member of the QObject subclass.
    May be this is the prob with u too

  3. #3
    Join Date
    Jan 2008
    Posts
    72
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Unhappy Re: Inherit the QAxWidget

    Thanx for your reply ....
    but I m not using the signal and slot ......I want to simply use the property of QAxWidget within my class......which is as Follows...
    class Frame: public QAxWidget
    {
    public:
    Frame(QWidget * parent):QAxWidget(parent)
    {
    }

    };
    Why this making error?????????????????????

  4. #4
    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: Inherit the QAxWidget

    is that the code u are using ??

    cant make out what mistake u are making without the code

Similar Threads

  1. Replies: 4
    Last Post: 27th June 2012, 10:41
  2. QAxWidget
    By chak_med in forum Newbie
    Replies: 1
    Last Post: 10th September 2006, 20:05
  3. QAxWidget Properties
    By ToddAtWSU in forum Newbie
    Replies: 1
    Last Post: 13th February 2006, 17:45
  4. QAxWidget
    By ToddAtWSU in forum Newbie
    Replies: 2
    Last Post: 3rd February 2006, 17:29

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.