Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Using both QtWebKit and QtWebEngine in one app
Forum Updated to NodeBB v4.3 + New Features

Using both QtWebKit and QtWebEngine in one app

Scheduled Pinned Locked Moved Unsolved Qt WebKit
8 Posts 3 Posters 2.5k 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.
  • P Offline
    P Offline
    popov895
    wrote on 12 Apr 2018, 15:19 last edited by
    #1

    Hi there! Currently our app uses only QtWebKit for some tasks, but QtWebKit is too old and therefore we decided to migrate to QtWebEngine. In the future, we'll completely migrate to QtWebEngine, but now some parts of our app still requires QtWebKit. So, the question is: is it possible to use both QtWebKit and QtWebEngine in one application, will there be any conflicts with this? Thanks in advance.

    J K 2 Replies Last reply 12 Apr 2018, 15:39
    0
    • P popov895
      12 Apr 2018, 15:19

      Hi there! Currently our app uses only QtWebKit for some tasks, but QtWebKit is too old and therefore we decided to migrate to QtWebEngine. In the future, we'll completely migrate to QtWebEngine, but now some parts of our app still requires QtWebKit. So, the question is: is it possible to use both QtWebKit and QtWebEngine in one application, will there be any conflicts with this? Thanks in advance.

      J Offline
      J Offline
      JonB
      wrote on 12 Apr 2018, 15:39 last edited by
      #2

      @popov895
      I believe the answer is "no problem". Certainly I have code which allows for either at runtime, though to be fair it only uses one or the other not both.

      Although I too have moved from WebKit to WebEngine, it's only fair to point out that there is an on-going project which has maintained WebKit all through Qt 5 if you would prefer that...

      1 Reply Last reply
      0
      • P popov895
        12 Apr 2018, 15:19

        Hi there! Currently our app uses only QtWebKit for some tasks, but QtWebKit is too old and therefore we decided to migrate to QtWebEngine. In the future, we'll completely migrate to QtWebEngine, but now some parts of our app still requires QtWebKit. So, the question is: is it possible to use both QtWebKit and QtWebEngine in one application, will there be any conflicts with this? Thanks in advance.

        K Offline
        K Offline
        Konstantin Tokarev
        wrote on 12 Apr 2018, 18:17 last edited by
        #3

        @popov895 said in Using both QtWebKit and QtWebEngine in one app:

        Hi there! Currently our app uses only QtWebKit for some tasks, but QtWebKit is too old and therefore we decided to migrate to QtWebEngine.

        Did you try QtWebKit 5.212?

        P 1 Reply Last reply 13 Apr 2018, 09:28
        2
        • K Konstantin Tokarev
          12 Apr 2018, 18:17

          @popov895 said in Using both QtWebKit and QtWebEngine in one app:

          Hi there! Currently our app uses only QtWebKit for some tasks, but QtWebKit is too old and therefore we decided to migrate to QtWebEngine.

          Did you try QtWebKit 5.212?

          P Offline
          P Offline
          popov895
          wrote on 13 Apr 2018, 09:28 last edited by popov895
          #4

          @Konstantin-Tokarev said in Using both QtWebKit and QtWebEngine in one app:

          Did you try QtWebKit 5.212?

          Yes, but It's buggy and very slow. Also woff fonts (we are using Material Icons font) aren't supported well.

          K 1 Reply Last reply 13 Apr 2018, 12:57
          0
          • P popov895
            13 Apr 2018, 09:28

            @Konstantin-Tokarev said in Using both QtWebKit and QtWebEngine in one app:

            Did you try QtWebKit 5.212?

            Yes, but It's buggy and very slow. Also woff fonts (we are using Material Icons font) aren't supported well.

            K Offline
            K Offline
            Konstantin Tokarev
            wrote on 13 Apr 2018, 12:57 last edited by
            #5

            There are no known bugs with WOFF fonts

            P 1 Reply Last reply 13 Apr 2018, 16:13
            1
            • K Konstantin Tokarev
              13 Apr 2018, 12:57

              There are no known bugs with WOFF fonts

              P Offline
              P Offline
              popov895
              wrote on 13 Apr 2018, 16:13 last edited by
              #6

              @Konstantin-Tokarev QWebView ignores font-style and font-weight in the @font-face, and therefore Material icons are displayed as italic.

              K 1 Reply Last reply 13 Apr 2018, 17:14
              0
              • P popov895
                13 Apr 2018, 16:13

                @Konstantin-Tokarev QWebView ignores font-style and font-weight in the @font-face, and therefore Material icons are displayed as italic.

                K Offline
                K Offline
                Konstantin Tokarev
                wrote on 13 Apr 2018, 17:14 last edited by
                #7

                Do you have sample URL?

                P 1 Reply Last reply 13 Apr 2018, 21:27
                0
                • K Konstantin Tokarev
                  13 Apr 2018, 17:14

                  Do you have sample URL?

                  P Offline
                  P Offline
                  popov895
                  wrote on 13 Apr 2018, 21:27 last edited by
                  #8

                  @Konstantin-Tokarev Here is a simple html sample:

                  <html>
                      <head>
                          <title>Test</title>
                          <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
                      </head>
                      <body>
                          <i class="material-icons">face</i>
                      </body>
                  </html>
                  

                  You can load it into QWebView and see that the icon is displayed as italic.

                  1 Reply Last reply
                  0

                  1/8

                  12 Apr 2018, 15:19

                  • Login

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