Why is a C++ class reported as undefined in QML?
↗ Original Qt Forum discussionQM • Qt Forum member • September 11, 2026 • 1 answers
A developer had a QObject-based C++ class but QML could not see or instantiate it.
A developer had a QObject-based C++ class but QML could not see or instantiate it.
qmlRegisterType<Info>("Company.Types", 1, 0, "Info");
Explain your own solution first; add reusable code if needed.