[Qt-interest] QT Webkit and flash

Dr. X xunlei at renci.org
Fri Jun 4 04:11:32 CEST 2010


Hi Oliver,
These are my global settings
     
QWebSettings::globalSettings()->setAttribute(QWebSettings::LocalStorageEnabled, 
true);
     
QWebSettings::globalSettings()->setAttribute(QWebSettings::LocalContentCanAccessRemoteUrls, 
true);
     
QWebSettings::globalSettings()->setAttribute(QWebSettings::OfflineWebApplicationCacheEnabled, 
true);
     
QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, 
true);
     
QWebSettings::globalSettings()->setAttribute(QWebSettings::AutoLoadImages, 
true);
     
QWebSettings::globalSettings()->setAttribute(QWebSettings::JavaEnabled, 
true);
     
QWebSettings::globalSettings()->setAttribute(QWebSettings::JavascriptEnabled, 
true);
before I call

      QWebView* view = new QWebView;
      view->load(QUrl("http://www.youtube.com"));
      view->show();

I hope I did not miss any settings.
Best,
x
On 6/3/2010 12:17 PM, Dr. X wrote:
> Hi,
> This is what I want to do. But the webpage asked for installing Flash
> Player.
>
>       QWebView* view = new QWebView;
>       view->load(QUrl("http://www.youtube.com"));
>       view->show();
>
> Flash Player is installed. Alternatively, I would like to do
>
>       QGraphicsWebView* gWebView = new QGraphicsWebView;
>       gWebView->load(QUrl("http://www.youtube.com"));
>       gWebView->show();
>
> which allows transformation of a webpage within the view or canvas I
> should say. This time, QGraphicsWebView widget does not even show up.
> Thanks for your help.
>
> Best,
> xunlei
>
>
>
> On 6/3/2010 11:55 AM, Oliver.Knoll at comit.ch wrote:
>    
>> Dr. X wrote on Thursday, June 03, 2010 5:44 PM:
>>
>>
>>      
>>> Can anyone provide an example of showing (preferrably local) flash
>>> content in a QWebView widget? Thanks a lot.
>>>
>>>        
>> In WebKit, open www.youtube.com - if you see the videos, Flash is working (assuming you're not viewing the HTML 5 based videos ;)
>>
>> Or what exactly was your question?
>>
>> Cheers, Oliver
>>
>>      
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>    




More information about the Qt-interest-old mailing list