Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.5.0 Beta
-
None
-
Qt package used: http://download.qt.io/development_releases/qt/5.5/5.5.0-beta/
Tested on Android 4.4.2, Samsung Galaxy 4 10".
-
c73251113d96119e5b937f81bbacfbcff2ef94cb
Description
Using dynamic create-destroy pattern from last example of this document page:
http://doc.qt.io/qt-5/qtqml-javascript-dynamicobjectcreation.html
Creating WebView using Qt.createQmlObject and then destroying it makes android application crash.
Used example:
import QtQuick 2.4 import QtQuick.Window 2.2 //import QtWebView 1.1 Window { id: rootWindow Component.onCompleted: { var webv = Qt.createQmlObject( "import QtQuick 2.4; import QtWebView 1.0; WebView { url: 'http://www.qt.io/'; anchors.fill: parent; }", rootWindow); webv.destroy(10000); } }
edited: commented out line 3, because it has no relevance to example.
Attachments
For Gerrit Dashboard: QTBUG-46286 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
113292,4 | Fix crash on destruction of QWebView instances. | 5.5 | qt/qtwebview | Status: MERGED | +2 | 0 |