Creating a qml Menu dynamically , always gives console warning.
Please find the test application as attached.
- For Building used Qt5.5.1 MSVC2013 64bit
- Application has one QML window and mousearea filled to it.
- On MouseArea doubleClicked , creating custom menu using Utility.createCustomMenu() method
-Menu will be launched
-check the console / application logs
output observed :
QML debugging is enabled. Only use this in a safe environment.
file:///E:/Qt/Qt5.5.1/5.5/msvc2013_64/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null
qml: about to hide
qml: cut menu clicked