https://bugs.kde.org/show_bug.cgi?id=408719
Bug ID: 408719 Summary: Customized MenuItem/ComboBox causes TypeErrors in Kirigami Product: frameworks-kirigami Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: notm...@gmail.com Reporter: lukas.sp...@web.de Target Milestone: Not decided Created attachment 120881 --> https://bugs.kde.org/attachment.cgi?id=120881&action=edit sample app producing described TypeErrors SUMMARY I created a very basic QML application (attached) that is based on QApplication (and not QGuiApplication). I then add a Menu with a MenuItem that has a custom contentItem set. When run the engine will produce a TypeError (though everything still seems to work): file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/MenuItem.qml:98: TypeError: Cannot read property 'height' of null Similarly, when adding a ComboBox also with customized contentItem then the engine produces 5 TypeErrors for each instance of the ComboBox: file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/ComboBox.qml:52: TypeError: Cannot read property 'pressed' of null file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/ComboBox.qml:178: TypeError: Cannot read property 'selectionStart' of null file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/private/MobileTextActionsToolBar.qml:62: TypeError: Cannot read property 'selectedText' of null file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/private/MobileTextActionsToolBar.qml:70: TypeError: Cannot read property 'selectedText' of null file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/private/MobileTextActionsToolBar.qml:78: TypeError: Cannot read property 'canPaste' of null The TypeError for the MenuItem can be hidden when adding the following line: arrow: Item {} I have not figured out a solution to prevent the 5 TypeErrors for the ComboBox. STEPS TO REPRODUCE 1. Compile attached sample app 2. Run app 3. OBSERVED RESULT 1 TypeError due to the MenuItem, 5 TypeErrors due to the ComboBox. EXPECTED RESULT No TypeErrors. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.16.0 KDE Frameworks Version: 5.59.0 Qt Version: 5.12.3 -- You are receiving this mail because: You are watching all bug changes.