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
Qt 6.11 is out! See what's new in the release blog

WebEngineView not resizing on Mac

Scheduled Pinned Locked Moved Unsolved QtWebEngine
2 Posts 2 Posters 477 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.
  • NineswissN Offline
    NineswissN Offline
    Nineswiss
    wrote on 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 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

      • Login

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