What is the simplest way to make QWebView
recognize and properly load Flash on the web page?
Asked
Active
Viewed 4,143 times
4

Septagram
- 9,425
- 13
- 50
- 81
-
2See http://stackoverflow.com/questions/18869/how-to-install-a-plugin-for-qtwebkit and http://stackoverflow.com/questions/4348306/problem-with-qt-webkit-and-flash – Flavius Jan 02 '12 at 17:37
-
@Flavius, thank you, this did it. I will still add the answer with the necessary code, to save someone 5 minutes of their time in case they will be googling it. – Septagram Jan 02 '12 at 17:55
2 Answers
5
Seems like this can be achieved in just two lines (assuming flash is installed on target system, of course):
QWebSettings *settings = QWebSettings::globalSettings();
settings->setAttribute (QWebSettings::PluginsEnabled, true);

Septagram
- 9,425
- 13
- 50
- 81
2
Incase someone else is viewing this page to get the Plugin to work...you need to put the Flash plugin itself from Adobe into a proper directory (See QT website for this) first and make sure it is the right one(32/64bit) for your app(s) not necessarily your system...
Then see above answers if a code programmer...

Rubber Telly Media
- 31
- 2