Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.12.0 Beta 1
-
None
-
-
953fbac6131823e4fce0eb4707a854469c4c04ff (qt/qtquickcontrols2/5.12.0)
-
Bug Fixing Week Q2/2020
Description
In my application I dynamically populate a Menu using QMLs Instantiator. This works fine with Qt 5.11.2, but is not with 5.12.0 beta1 (only tested on macOS Mojave).
Initial all MenuItem's are visible, but as soon as I hover these they disappear.
This code works as expected with qmlscene from 5.11 and is broken using qmlscene from 5.12:
import QtQml 2.11 import QtQuick 2.11 import QtQuick.Controls 2.4 ApplicationWindow { visible: true width: 640 height: 480 menuBar: MenuBar { Menu { title: qsTr("&Ok") MenuItem { text: "A" } MenuItem { text: "B" } MenuItem { text: "C" } } Menu { id: moduleMenu title: qsTr("&Broken") Instantiator { model: ["A", "B", "C"] MenuItem { text: modelData } onObjectAdded: moduleMenu.insertItem(index, object) onObjectRemoved: moduleMenu.removeItem(object) } } } }
Attachments
Issue Links
- depends on
-
QTBUG-70063 tst_font::font(Control) crash on macOS 10.13
- Closed
-
QTBUG-70064 tst_QQuickApplicationWindow::font() crash on macOS 10.13
- Closed
-
QTBUG-71387 Crash after calling qmlClearTypeRegistrations()
- Closed
-
QTBUG-71467 tst_QQuickListView crashes on macOS
- Closed
For Gerrit Dashboard: QTBUG-71066 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
242444,11 | Fix Instantiator-created MenuItems disappearing | 5.12.0 | qt/qtquickcontrols2 | Status: MERGED | -2 | 0 |
242465,4 | Export QQmlInstantiator and QQmlInstantiatorPrivate privately | 5.12 | qt/qtdeclarative | Status: MERGED | -2 | 0 |
242676,9 | WIP: Fix Instantiator-created MenuItems disappearing | 5.12 | qt/qtquickcontrols2 | Status: ABANDONED | -2 | 0 |