Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. webengineview will cause performance degradation?

webengineview will cause performance degradation?

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 2 Posters 1.1k 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.
  • johnson54J Offline
    johnson54J Offline
    johnson54
    wrote on last edited by
    #1

    I use QT 5.12.3 in windows 10
    I put some widgets in mdiArea by using mdi->addsubwindow(widges)
    if one of the widgets contains webengineview widget, all the widgets in mdiArea will have a delay to move when I drag their title bars.
    if I delete the webengineview in a widget, there will be no delay for all widgets when I try to move them.

    1 Reply Last reply
    0
    • johnson54J Offline
      johnson54J Offline
      johnson54
      wrote on last edited by
      #2

      I just promote the widget to webengineview and nothing is done

      1 Reply Last reply
      0
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        So you dont even load a page to the webengineview ?

        johnson54J 1 Reply Last reply
        0
        • mrjjM mrjj

          Hi
          So you dont even load a page to the webengineview ?

          johnson54J Offline
          johnson54J Offline
          johnson54
          wrote on last edited by
          #4

          @mrjj yeah, I just new a QWebEngineView like this:
          m_webView = new QWebEngineView;
          ui->verticalLayout_webFrame->addWidget(m_webView);
          it will cause the delay for movement.

          mrjjM 1 Reply Last reply
          0
          • johnson54J johnson54

            @mrjj yeah, I just new a QWebEngineView like this:
            m_webView = new QWebEngineView;
            ui->verticalLayout_webFrame->addWidget(m_webView);
            it will cause the delay for movement.

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @johnson54
            ok. thats a bit odd.
            Should not be that heavy.
            If you just use it in a MainWindow, its also lags ?
            Could be something with MDI windows.

            johnson54J 1 Reply Last reply
            0
            • mrjjM mrjj

              @johnson54
              ok. thats a bit odd.
              Should not be that heavy.
              If you just use it in a MainWindow, its also lags ?
              Could be something with MDI windows.

              johnson54J Offline
              johnson54J Offline
              johnson54
              wrote on last edited by
              #6

              @mrjj I just tried, it doesn't lag if use in MainWindow, so there is something with MDI windows. thats odd, if I comment the line // ui->verticalLayout_webFrame->addWidget(m_webView);
              it doesn't lag, but it lags (the mouse will go outof the title bar some distance and then the widget starts to move) if this line is added.
              how can I make further checks? thanks a lot

              1 Reply Last reply
              0
              • mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Hi
                I tried with
                auto m_webView = new QWebEngineView;
                m_webView->resize(100,100);
                auto it = ui->mdiArea->addSubWindow(m_webView );
                it->resize(100,100);
                it->show();

                and did get any lag even i made several of them.

                Could you try same code ?
                Only difference is there is no layout.

                1 Reply Last reply
                0
                • johnson54J Offline
                  johnson54J Offline
                  johnson54
                  wrote on last edited by johnson54
                  #8

                  I tried your code, and it lags.
                  the attachment is my project (testmdi.rar) and I take a short video (mdi_with_webengine.mp4) to show how it lags.
                  As a comparison, the video named 'mdi_demo_by_qt.mp4' is generated using the QT demo 'MDI Example' in Qt 5.12.3 MSVC2017 32 bit.
                  In mdi_demo_by_qt.mp4, I think it doesn't lag, but in mdi_with_webengine.mp4, it lags
                  As I cannot upload file, I put them in my github 'https://github.com/divid54/qt_project/tree/master/testmdi'
                  thanks a lot

                  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