Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Pepper Flash fullscreen and customize ScrollBars in QWebEngineView or QWebEnginePage

Pepper Flash fullscreen and customize ScrollBars in QWebEngineView or QWebEnginePage

Scheduled Pinned Locked Moved Unsolved QtWebEngine
5 Posts 2 Posters 2.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    xiaoluer87
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by p3c0
      #2

      @xiaoluer87

      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-api

      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?

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

      157

      X 1 Reply Last reply
      0
      • p3c0P p3c0

        @xiaoluer87

        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-api

        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?

        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);
        }
        
        X Offline
        X Offline
        xiaoluer87
        wrote on last edited by
        #3

        @p3c0 Thanks for answer.

        1. "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:
          alt text
          test websit

        2. I think you may not understand what I mean,I want to customize ScrollBars like this:
          alt text

        1 Reply Last reply
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by p3c0
          #4

          @xiaoluer87

          1. Unfortunately it is a known limitation. See https://bugreports.qt.io/browse/QTWB-6

          2. There is no way to get handle of the scrollbar in C++ code. You have to inject the custom scrollbar stylesheet using JS.

          157

          X 1 Reply Last reply
          0
          • p3c0P p3c0

            @xiaoluer87

            1. Unfortunately it is a known limitation. See https://bugreports.qt.io/browse/QTWB-6

            2. There is no way to get handle of the scrollbar in C++ code. You have to inject the custom scrollbar stylesheet using JS.

            X Offline
            X Offline
            xiaoluer87
            wrote on last edited by
            #5

            @p3c0 said in Pepper Flash fullscreen and customize ScrollBars in QWebEngineView or QWebEnginePage:

            scrollbar

            OK,I know it

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved