Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtCharts leads to crashing of application
Forum Updated to NodeBB v4.3 + New Features

QtCharts leads to crashing of application

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 491 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Leon_2001
    wrote on last edited by
    #1

    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.

    Error: EXC_BAD_ACCESS (SIGSEGV)

    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?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      Leon_2001
      wrote on last edited by
      #2

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

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved