Unsolved QML_EXTENDED()、 QML_FOEEIGN() seem not to work in 5.15
-
I have run the example below, but it can't work, but I get the error:
"QQmlComponent: Component is not ready
(qrc:example.qml:54:1: QLineEdit is not a type
QLineEdit {
^)"
What should I do?
https://code.qt.io/cgit/qt/qtdeclarative.git/tree/examples/qml/referenceexamples/extended?h=5.15 -
@open-src
I am not sure what's wrong with the above example but usingQLineEditForeign
in the QML solves the issueQLineEditForeign { leftMargin: 20 }
-
@Mammamia
Thanks for your reply.
But, it doesn't make sense to use QLineEditForeign. -
@open-src I agree.
I would suggest open a bug report to Qt mentioning this.