79229419

Date: 2024-11-27 08:20:04
Score: 2
Natty:
Report link

In the following line in main.cpp, you passed <&a> as an argument for the function. But you did not declare variable before. I think the nullptr error caused by this fault.

QObject::connect(&engine, &QQmlApplicationEngine::objectCreated, &a, [url](QObject *obj, const QUrl &objUrl)

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mehdi shemshadi