Results 1 to 2 of 2

Thread: Help: Play Flash media in Qt GUI application

  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 11:58.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Help: Play Flash media in Qt GUI application

    Probably the easiest way would be to use WebKit - display a QWebView containing html with a flash object and WebKit's flash plugin will do the rest.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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, 16:17
  2. Play video in QT4 application
    By carlosmele in forum Qt Programming
    Replies: 3
    Last Post: 14th April 2009, 23:24
  3. how to play media files.
    By hrudhay in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 28th August 2008, 11:24
  4. Phonon Media Object blocking on play()
    By traetox in forum Qt Programming
    Replies: 0
    Last Post: 21st May 2008, 06:43
  5. Replies: 10
    Last Post: 4th December 2006, 06: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.