Details
-
Bug
-
Resolution: Cannot Reproduce
-
P1: Critical
-
None
-
6.2.2
-
Android 11.0
Android NDK 21.3.6528147 (Qt 5.15.2)
Android NDK 22.1.7171670 (Qt 6.2.2)
Windows 10 21H2 (19043.1415) (Qt 6.2.2 MinGW)
Description
Not sure if what I do is evil ... but it used to work in the past. (At least Qt 5.15.2)
I use something similar in an app to dynamically add/remove Actions to a Menu.
Example:
import QtQuick 2.15 import QtQuick.Controls 2.15 ApplicationWindow { width: 640 height: 480 visible: true title: qsTr("MenuCrash") Menu{ id: contextMenu height: parent.height width: parent.width Action{ text: "Action 0" } Action{ text: "Action 1" } Action{ text: "Action 2" } Action{ id: closeAction text: "Close (3)" onTriggered: contextMenu.close() } function show(){ takeAction( 3 ); addAction( closeAction ); open(); } } Button{ text: "Open menu" onClicked: contextMenu.show() anchors.centerIn: parent } }
How to reproduce:
- Open the app on android
- Tap "Open Menu" -> Menu opens
- Tap "Close (3)" -> Menu closes
- Tap "Open Menu" -> App crashes
Works on Windows.