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. web page loads very slowly at the beginning in the case of QWebEngineViews in different processes sharing the same cache path
Forum Updated to NodeBB v4.3 + New Features

web page loads very slowly at the beginning in the case of QWebEngineViews in different processes sharing the same cache path

Scheduled Pinned Locked Moved Unsolved QtWebEngine
5 Posts 3 Posters 466 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.
  • G Offline
    G Offline
    gaojinhsu
    wrote on last edited by
    #1

    For example, application A has a webengineview to load web page, so we start a process a of application A , and then
    process a starts a process b of application A . Since they have the same cache path of qwebengineprofile by setting

    QWebEngineProfile::defaultProfile()->setCachePath(path);
    QWebEngineProfile::defaultProfile()->setPersistentStoragePath(path);
    , process b shows a white and blank webengineview in a long time before web page finish loading. Is there a solution to fix this?

    Qt version: 5.15.2
    Platform: windows

    O 1 Reply Last reply
    0
    • SGaistS SGaist moved this topic from General and Desktop on
    • G gaojinhsu

      For example, application A has a webengineview to load web page, so we start a process a of application A , and then
      process a starts a process b of application A . Since they have the same cache path of qwebengineprofile by setting

      QWebEngineProfile::defaultProfile()->setCachePath(path);
      QWebEngineProfile::defaultProfile()->setPersistentStoragePath(path);
      , process b shows a white and blank webengineview in a long time before web page finish loading. Is there a solution to fix this?

      Qt version: 5.15.2
      Platform: windows

      O Offline
      O Offline
      ObiWanKennedy
      wrote on last edited by
      #2

      @gaojinhsu Do you get the same result in release mode ?

      G 1 Reply Last reply
      0
      • LahearleL Offline
        LahearleL Offline
        Lahearle
        wrote on last edited by
        #3

        I don't have any problem loading pages at all. If you have a slow PC and don't want both running at the same time you'll just have to pause the second one until the first one is done.

        Or maybe try setting a different cache path for each different URL?

        Try pausing the second for a set time , or not starting the second until the first is set and or done.

        :)

        G 1 Reply Last reply
        0
        • O ObiWanKennedy

          @gaojinhsu Do you get the same result in release mode ?

          G Offline
          G Offline
          gaojinhsu
          wrote on last edited by gaojinhsu
          #4

          @ObiWanKennedy yes, I do.

          1 Reply Last reply
          0
          • LahearleL Lahearle

            I don't have any problem loading pages at all. If you have a slow PC and don't want both running at the same time you'll just have to pause the second one until the first one is done.

            Or maybe try setting a different cache path for each different URL?

            Try pausing the second for a set time , or not starting the second until the first is set and or done.

            G Offline
            G Offline
            gaojinhsu
            wrote on last edited by
            #5

            @Lahearle Can you reproduce the issue following my steps?

            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