WebEngineView not resizing on Mac
Unsolved
QtWebEngine
-
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 -
@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 QtWebEngineWindow {
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 }
}