Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.4.0
Description
QtWebView always launches fullscreen. Even if used with a QQuickWidget, it overrides the limits.
webview = new QQuickWidget(); QGridLayout *layout = new QGridLayout; layout->addWidget(webview); webview->setSource(QUrl("qrc:/webview.qml")); webview->setResizeMode(QQuickWidget::SizeViewToRootObject); ui->groupBox->setLayout(layout); webview->show();
import QtQuick 2.2 import QtQuick.Controls 1.1 import QtWebView 1.0 import QtQuick.Layouts 1.1 Rectangle { width: 2000 height: 2000 WebView { anchors.fill: parent id: webView url: "http://qt.io" } }