Pepper Flash fullscreen and customize ScrollBars in QWebEngineView or QWebEnginePage
-
Question 1:
When I use Pepper Flash play video in my app,fullscreen can not work,html5 video fullscreen is work normally,Is any way to support Flash fullscreen?Question 2:
I want to customize ScrollBars in QWebEngineView or QWebEnginePage,but I can't get ScrollBars handle,so,how can i customize it? Use Qss or other?thanks!
Qt 5.7 windows
-
Question 1:
When I use Pepper Flash play video in my app,fullscreen can not work,html5 video fullscreen is work normally,Is any way to support Flash fullscreen?Set
QWebEngineSettings::PluginsEnabled
to true using setAttribute
More info here:
http://doc.qt.io/qt-5/qtwebengine-features.html#pepper-plugin-apiQuestion 2:
I want to customize ScrollBars in QWebEngineView or QWebEnginePage,but I can't get ScrollBars handle,so,how can i customize it? Use Qss or other?AFAIK it can only be done through Javacript by injecting the code using runJavaScript
An example from the docs:
void MainWindow::highlightAllLinks() { QString code = "qt.jQuery('a').each( function () { qt.jQuery(this).css('background-color', 'yellow') } ); undefined"; view->page()->runJavaScript(code); }
-
Question 1:
When I use Pepper Flash play video in my app,fullscreen can not work,html5 video fullscreen is work normally,Is any way to support Flash fullscreen?Set
QWebEngineSettings::PluginsEnabled
to true using setAttribute
More info here:
http://doc.qt.io/qt-5/qtwebengine-features.html#pepper-plugin-apiQuestion 2:
I want to customize ScrollBars in QWebEngineView or QWebEnginePage,but I can't get ScrollBars handle,so,how can i customize it? Use Qss or other?AFAIK it can only be done through Javacript by injecting the code using runJavaScript
An example from the docs:
void MainWindow::highlightAllLinks() { QString code = "qt.jQuery('a').each( function () { qt.jQuery(this).css('background-color', 'yellow') } ); undefined"; view->page()->runJavaScript(code); }
@p3c0 Thanks for answer.
-
"QWebEngineSettings::PluginsEnabled" I used, flash video can play normally in not fullsreen mode, I mean I can't let it play in fullsreeen mode.
I use "Qt5.7.0\Examples\Qt-5.7\webenginewidgets\demobrowser" for example:
test websit -
I think you may not understand what I mean,I want to customize ScrollBars like this:
-
-
-
Unfortunately it is a known limitation. See https://bugreports.qt.io/browse/QTWB-6
-
There is no way to get handle of the scrollbar in C++ code. You have to inject the custom scrollbar stylesheet using JS.
-
-
-
Unfortunately it is a known limitation. See https://bugreports.qt.io/browse/QTWB-6
-
There is no way to get handle of the scrollbar in C++ code. You have to inject the custom scrollbar stylesheet using JS.
@p3c0 said in Pepper Flash fullscreen and customize ScrollBars in QWebEngineView or QWebEnginePage:
scrollbar
OK,I know it
-