Details
-
Bug
-
Resolution: Cannot Reproduce
-
P1: Critical
-
None
-
5.10.0
-
None
Description
The crash occurs on Windows, Linux and MacOS and maybe also on Android an IOS. With the following example you should get the crash after closing the app.
pro file (standard pro file after creating neu project):
QT += quick
CONFIG = c+11
DEFINES += QT_DEPRECATED_WARNINGS
deprecated before Qt 6.0.0
SOURCES += main.cpp
RESOURCES += qml.qrc
- Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
- Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =
- Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
main.cpp:
#include <QGuiApplication>
#include <QQuickView>
int main(int argc, char *argv[])
{ QQuickView* Viewer = new QQuickView(); Viewer->setSource(QUrl("qrc:/main.qml")); Viewer->setResizeMode(QQuickView::SizeRootObjectToView); Viewer->showFullScreen(); return app.exec(); }main.qml:
import QtQuick 2.10
import QtLocation 5.9
Item
{
Plugin
{
id: mapPlugin
name: "mapboxgl"
parameters:
[
PluginParameter
]
}
Map
{ id: map anchors.fill: parent plugin: mapPlugin }}