Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
5.15.0
-
None
-
Linux 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
-
-
c1d07c819 (tqtc/lts-5.15), bc3e74d01 (tqtc/lts-5.15)
Description
Creating a simple application using the "Qt Quick Application - Empty" template and replacing the main.qml with the following leads to a crash on close in 5.15 but not in prior versions (tested with 5.14.2)
The crash happens on Linux but not on Windows (I have not tested other platforms).
import QtQuick 2.14 import QtQuick.Controls 2.3 import QtQuick.Layouts 1.3 import QtQuick.Window 2.14 ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Menubar regression Qt 5.14 -> 5.15") menuBar: Item { id: root height: 44 visible: true implicitWidth: headerItems.implicitWidth Rectangle { anchors.fill: parent color: "gray" } Rectangle { id: bottomDivider anchors { left: parent.left right: parent.right bottom: parent.bottom } height: 1 color: "black" z: 1 } RowLayout { id: headerItems anchors { top: parent.top left: parent.left right: parent.right bottom: bottomDivider.top } spacing: 4 MenuBar { id: mainMenuBar implicitHeight: headerItems.height delegate: MenuBarItem { id: menuBarItem contentItem: Text { text: menuBarItem.text textFormat: Text.StyledText opacity: enabled ? 1.0 : 0.3 horizontalAlignment: Text.AlignLeft verticalAlignment: Text.AlignVCenter elide: Text.ElideRight } background: Rectangle { implicitHeight: mainMenuBar.height opacity: enabled ? 1 : 0.3 color: "#eee" } } Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter Menu { title: qsTr("File") MenuItem { text: qsTr("Placeholder") } Action { text: qsTr("Quit") onTriggered: Qt.quit() shortcut: "Ctrl+Q" } } Item { id: flexibleSpaceRight Layout.fillWidth: true } } } } }
Attachments
Issue Links
- is duplicated by
-
QTBUG-92489 QML Application crashes with segfault on any interaction with Combobox
- Closed
-
QTBUG-91437 Segfault in QQuickItemLayer destructor when accessibility is enabled
- Closed
For Gerrit Dashboard: QTBUG-84858 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
505557,4 | Accessibility: respect value in attached Accessible in controls | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
505558,4 | Accessibility: respect value in attached Accessible in controls | tqtc/lts-5.15 | qt/tqtc-qtquickcontrols2 | Status: MERGED | +2 | 0 |