Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
AhmedYossef last edited by
I want to subclass QQuickItem and Create my own Item.
Currently i have a class that has a QQuickItem which has the following code in the constructor, but i want the class itself to be a QQuickItem
QQmlComponent component(parent->engine(), QUrl(QStringLiteral("qrc:/Bullet.qml")));
Item = qobject_cast<QQuickItem*>(component.create());
Item is QQuickItem*