QtCharts leads to crashes
-
Hello, my app crashes as soon as I add ChartView in main.qml file. It says failed to load component.
I tried replacing QGuiApplication with QApplication as suggested in some related forum question. But It says QApplication does not exist.



-
Hello, my app crashes as soon as I add ChartView in main.qml file. It says failed to load component.
I tried replacing QGuiApplication with QApplication as suggested in some related forum question. But It says QApplication does not exist.



@Sajjad-Ali Please post code as text, not pictures!
The problem you have is not related to QtCharts.
Your main.qml file cannot be found. Check your resource file. -
@Sajjad-Ali Please post code as text, not pictures!
The problem you have is not related to QtCharts.
Your main.qml file cannot be found. Check your resource file.You also need a
QApplicationand not aQGuiApplicationsince the Qt Charts module depends on Qt Widgets. -
S Sajjad Ali has marked this topic as solved on