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. WebEngineView not resizing on Mac
Forum Updated to NodeBB v4.3 + New Features

WebEngineView not resizing on Mac

Scheduled Pinned Locked Moved Unsolved QtWebEngine
2 Posts 2 Posters 374 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.
  • N Offline
    N Offline
    Nineswiss
    wrote on 10 Dec 2022, 03:28 last edited by
    #1

    On initial load I can resize the WebEngineView when I resize the main window, however once I navigate to another url, when I resize the window the WebViewEngine stays the original size.

    import QtQml
    import QtQuick
    import QtQuick.Window
    import QtWebEngine
    
    Window {
        width: 1024
        height: 768
        visible: true
        title: qsTr("Hello World")
    
    
        WebEngineView{
            anchors.fill: parent
            url: "https://google.com"
        }
    
    
    }
    

    Macos: Monteray Version 12.5
    QT: 6.4.0

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Aliviya
      wrote on 15 Dec 2022, 08:53 last edited by
      #2

      @Nineswiss said in WebEngineView not resizing on Mac:

      On initial load I can resize the WebEngineView when I resize the main window, however once I navigate to another url, when I resize the window the WebViewEngine stays the original size.
      import QtQml
      import QtQuick
      import QtQuick.Window
      import QtWebEngine

      Window {
      width: 1024
      height: 768
      visible: true
      title: qsTr("Hello World")

      WebEngineView{
          anchors.fill: parent
          url: "https://google.com"
      }
      
      onWidthChanged: {
          engineView.width = width
      }
      
      onHeightChanged: {
          engineView.height = height
      }
      

      }

      1 Reply Last reply
      0

      1/2

      10 Dec 2022, 03:28

      • Login

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