The Ultimate Qt Community site
Home News Forum Wiki Contest FAQ Links

Go Back   Qt Centre Forum > Qt > Qt Programming

Qt Programming General Qt programming issues.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28th August 2008, 20:14
sawerset sawerset is offline
Beginner
 
Join Date: Aug 2008
Qt products used: Qt4
Qt platforms used: Unix/X11
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default QT and Flash

I need to show Flash movie in QT window.
How it can be done? What QT widgets can be used for this?

Reply With Quote
  #2  
Old 28th August 2008, 20:21
jpn jpn is offline
Guru
 
Join Date: Feb 2006
Location: Tampere, Finland
Qt products used: Qt4
Qt platforms used: Unix/X11, Windows
Posts: 5,430
Thanks: 36
Thanked 1,218 Times in 1,167 Posts
Default Re: QT and Flash

There won't be a way to use Macromedia's Flash plugin with Qt4.4/Webkit, but hopefully with Qt4.5/Webkit.

PS. QT is QuickTime. You probably mean Qt.
__________________
J-P Nurmi
Reply With Quote
  #3  
Old 28th August 2008, 20:24
sawerset sawerset is offline
Beginner
 
Join Date: Aug 2008
Qt products used: Qt4
Qt platforms used: Unix/X11
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: QT and Flash

Ofcourse I meaned Qt. And my program is running under Linux.

Reply With Quote
  #4  
Old 28th August 2008, 20:50
wysota wysota is offline
Guru
 
Join Date: Jan 2006
Location: Warsaw, Poland
Qt products used: Qt3, Qt4
Qt platforms used: Unix/X11, Windows
Posts: 11,590
Thanks: 3
Thanked 1,629 Times in 1,581 Posts
Default Re: QT and Flash

I think you can embed Gnash into your application.

Reply With Quote
  #5  
Old 29th August 2008, 11:41
sawerset sawerset is offline
Beginner
 
Join Date: Aug 2008
Qt products used: Qt4
Qt platforms used: Unix/X11
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: QT and Flash

Where documentation about gnash API and examples can be found.
I tried to search at gnashdevelop.org and where is no documentation for programmers.

Reply With Quote
  #6  
Old 29th August 2008, 11:46
wysota wysota is offline
Guru
 
Join Date: Jan 2006
Location: Warsaw, Poland
Qt products used: Qt3, Qt4
Qt platforms used: Unix/X11, Windows
Posts: 11,590
Thanks: 3
Thanked 1,629 Times in 1,581 Posts
Default Re: QT and Flash

Call gnash --help. You need to use the -x switch.

Reply With Quote
  #7  
Old 29th August 2008, 20:43
sawerset sawerset is offline
Beginner
 
Join Date: Aug 2008
Qt products used: Qt4
Qt platforms used: Unix/X11
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: QT and Flash

Qt Code:
  1. void myWindow::startFlash()
  2. {
  3.    
  4.     QProcess *qpr=new QProcess;
  5.     char temp[256]={'\0'};
  6.     sprintf(temp,"-x %ld -j 200 -k 200 %s",this->winId(),"/home/vitaliy/projects/qtTest/qtTest/opr04CTZ.swf");
  7.     qDebug(temp);
  8.     QStringList list(temp);
  9.    
  10.     qpr->start("gnash",list);
  11. }
I tried to this code for showing flash.
But nothing is shown on my window. What I am doing wrong?

Reply With Quote
  #8  
Old 29th August 2008, 20:50
jpn jpn is offline
Guru
 
Join Date: Feb 2006
Location: Tampere, Finland
Qt products used: Qt4
Qt platforms used: Unix/X11, Windows
Posts: 5,430
Thanks: 36
Thanked 1,218 Times in 1,167 Posts
Default Re: QT and Flash

Qt Code:
  1. args << "-x" << "%ld" << "-j" << "200" ...;
__________________
J-P Nurmi
Reply With Quote
  #9  
Old 29th August 2008, 22:59
sawerset sawerset is offline
Beginner
 
Join Date: Aug 2008
Qt products used: Qt4
Qt platforms used: Unix/X11
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: QT and Flash

I tried this but nothing changed.
Now my code is this.

Qt Code:
  1. void myWindow::startFlash()
  2. {
  3.    
  4.     QProcess *qpr=new QProcess;
  5.     char temp[256]={'\0'};
  6.     sprintf(temp,"%ld",(long)this>winId())
  7.     QStringList list;
  8.     list << "-x" <<  temp<< "-j" << "500"<<"-k"<<"500"<<"/home/vitaliy/projects/qtTest/qtTest/opr04CTZ.swf";
  9.     qpr->start("gnash",list);
  10. }

Last edited by jacek; 29th August 2008 at 23:51. Reason: changed [qtclass] to [code]
Reply With Quote
  #10  
Old 30th August 2008, 14:33
wysota wysota is offline
Guru
 
Join Date: Jan 2006
Location: Warsaw, Poland
Qt products used: Qt3, Qt4
Qt platforms used: Unix/X11, Windows
Posts: 11,590
Thanks: 3
Thanked 1,629 Times in 1,581 Posts
Default Re: QT and Flash

Does gnash start at all? Can you see it on the process list?

Reply With Quote
  #11  
Old 31st August 2008, 07:22
sawerset sawerset is offline
Beginner
 
Join Date: Aug 2008
Qt products used: Qt4
Qt platforms used: Unix/X11
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: QT and Flash

Yes I can see GTK-gnash in the process list.

Reply With Quote
  #12  
Old 31st August 2008, 17:52
wysota wysota is offline
Guru
 
Join Date: Jan 2006
Location: Warsaw, Poland
Qt products used: Qt3, Qt4
Qt platforms used: Unix/X11, Windows
Posts: 11,590
Thanks: 3
Thanked 1,629 Times in 1,581 Posts
Default Re: QT and Flash

Does it have proper arguments?

Reply With Quote
  #13  
Old 1st September 2008, 08:51
sawerset sawerset is offline
Beginner
 
Join Date: Aug 2008
Qt products used: Qt4
Qt platforms used: Unix/X11
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts