Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.8.0
-
None
Description
Please see the attached example (don't forget to set the correct path to the test.qml file in main.cpp)
We create a QGraphicsProxyWidget subclass to embed a QTextEdit in QML. It works well, but we cannot access the item through a property alias. We get an error message in the console.
Rectangle { property alias propAlias: textEdit width: 400 height: 320 SuperTextEdit { // <-- this is our QGraphicsProxyWidget subclass id: textEdit } Component.onCompleted: { console.log(propAlias); // <-- outputs an error message in the console } }
Error message in the console:
QMetaProperty::read: Unable to handle unregistered datatype '*' for property 'QDeclarativeRectangle_QML_1::propAlias'