Results 1 to 2 of 2

Thread: Help: Play Flash media in Qt GUI application

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Help: Play Flash media in Qt GUI application

    hey all,
    I want to play flash (.swf) files,and I realize it in Windows as follows:
    Qt Code:
    1. #include <QtGui>
    2. #include <QAxWidget>
    3.  
    4. int main(int argc, char *argv[])
    5. {
    6. QApplication a(argc, argv);
    7.  
    8. QAxWidget *flash = new QAxWidget(0,0);
    9. flash->resize(1000,700);
    10. flash->setControl(QString::fromUtf8("{d27cdb6e-ae6d-11cf-96b8-444553540000}"));
    11. flash->dynamicCall("LoadMovie(long,string)",0,"G:/e.swf");
    12. flash->show();
    13.  
    14. return a.exec();
    15. }
    To copy to clipboard, switch view to plain text mode 

    and add CONFIG+=qaxcontainer in .PRO
    But QAxWidget is not included in other operation system like (linux or Mac) it seems that ActiveX only support Win.
    So, I wanna ask how to play .swf in Qt Gui application in other os, like Mac or Linux?
    thx~
    Last edited by wysota; 5th March 2010 at 10:58.

Similar Threads

  1. Qt 4.5- cannot compile lphonon ( media module) application
    By varunmagical in forum Qt Programming
    Replies: 0
    Last Post: 21st September 2009, 15:17
  2. Play video in QT4 application
    By carlosmele in forum Qt Programming
    Replies: 3
    Last Post: 14th April 2009, 22:24
  3. how to play media files.
    By hrudhay in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 28th August 2008, 10:24
  4. Phonon Media Object blocking on play()
    By traetox in forum Qt Programming
    Replies: 0
    Last Post: 21st May 2008, 05:43
  5. Replies: 10
    Last Post: 4th December 2006, 05:38

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
  •  
Qt is a trademark of The Qt Company.