Search code examples
flashqtqtwebkit

How to make QtWebKit see Flash?


What is the simplest way to make QWebView recognize and properly load Flash on the web page?


Solution

  • 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);