Quantcast
Channel: Qt DevNet forums: Qt WebKit
Viewing all articles
Browse latest Browse all 542

Qt5.4 webkit flash plugin not detected on Windows

$
0
0
Hello, I am trying to port a Qt5 web application from Linux/OSX to Windows. The application compiles and runs fine on Windows but I cannot get the flash plugin to work (works fine on Linux and OSX). I am using the latest Qt SDK (v5.4) on Windows 7 Service Pack 1 (I also tried on an old machine running Windows XP SP3 with the exact same results). Here is a SSCCE that reproduce the exact same problem I have with my app. If I compile this example with Qt 4.8.6, everything works fine (flash content is loaded, I can play some music,…) but not if I compile it with Qt 5.4. I’ve tried to compile the app both with MSVC2010-32bit and MSVC2013_64bit (release and debug) without succes. I also tried to copy the flashplugin dll to both my app folder and APPDATA\Mozilla\Plugins, again without succes. Am I missing something obvious when using Qt 5.4 on Windows or is the plugin detection broken in Qt 5.4? Should I report a bug? test.pro: #------------------------------------------------- # # Project created by QtCreator 2015-01-14T17:05:40 # #------------------------------------------------- QT       += core gui webkit greaterThan(QT_MAJOR_VERSION, 4): QT += widgets webkitwidgets TARGET = TestFlash TEMPLATE = app SOURCES += main.cpp main.cpp #include <QApplication> #include <QUrl> #include <QWebSettings> #include <QWebView>   int main(int argc, char *argv[]) {     QApplication a(argc, argv);       QWebSettings* settings = QWebSettings::globalSettings();     settings->setAttribute(QWebSettings::PluginsEnabled, true);     settings->setAttribute(QWebSettings::JavascriptEnabled, true);       QWebView v;     v.load(QUrl("http://grooveshark.com"));     v.show();       return a.exec(); }

Viewing all articles
Browse latest Browse all 542

Trending Articles