Important: Please read the Qt Code of Conduct -

QtCharts leads to crashing of application

  • Hi everyone,

    import QtQuick 2.12
    import QtQuick.Window 2.12
    import QtCharts 2.3
    Window {
        visible: true
        width: 640; height: 480
        ChartView {
            anchors.centerIn: parent
            width: 400; height: 400

    does not work. I also tried several other things (with ApplicationWindow, more content etc.).
    It just crashes.


    I did link to charts in my project file.

    It is somehow related to Window/ApplicationWindow/QApplicationEngine. The examples of QT are working and use QQuickView.

    Anyone an idea what is going on here?

  • I found the solution to the problem. I uses QGuiApplication instead of QApplication, I overread that I need this.

Log in to reply