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. QtWebEngineViews in QStackedWidget
Forum Updated to NodeBB v4.3 + New Features

QtWebEngineViews in QStackedWidget

Scheduled Pinned Locked Moved Solved QtWebEngine
2 Posts 1 Posters 435 Views
  • 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.
  • T Offline
    T Offline
    Toocold
    wrote on last edited by
    #1

    I added some QtWebEngineViews into a QStackedWidget.
    When I resize the QStackedWidget, current QtWebEngineView also resize but lag.
    But when i set other QtWebEngineViews to be CurrentWidget, they all have a resizing process.
    How do I avoid the resizing process? Let other QtWebEngineViews resized before show.

    1 Reply Last reply
    1
    • T Offline
      T Offline
      Toocold
      wrote on last edited by Toocold
      #2

      I solved this. Qt 5.15.2.
      When hanlde the resizeevent of QStackWidget , call resize() for each QWebEngineView in QStackedWidget, And must call show() after it.
      I guess show() function let Chromium to paint the hidden widget.
      QTBUG-58324 maybe the same thing.

      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