Qt Charts crash
-
wrote on 24 Aug 2016, 19:32 last edited by orzel1244
Hello, I'm trying to create chart, but my application is crashing, mayby someone can help me?
ScreenShot
main.qml
main.cppI'm sorry for my simple english, I'm still learning
-
Hi,
From the error on the IDE console, you should have a
QApplication
and not aQGuiApplication
. -
wrote on 25 Aug 2016, 07:10 last edited by
It's working, thanks a lot :D
-
You're welcome !
Since you have it working now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)
-
Hi,
From the error on the IDE console, you should have a
QApplication
and not aQGuiApplication
.wrote on 10 Aug 2021, 06:14 last edited by@SGaist i'm having QML application and backend is QT (Qt 5.15) , in my application i'm using chartview
with QApplication its working fine But need to ask is there any problem we might face in project or application if use QApplication instead of QGuiApplication for Qt 5.15 ,QGuiApplication - base class + GUI capabilities. Use it in QML applications.
QApplication - base class + GUI + support for widgets. Use it in QtWidgets applications. -
@SGaist i'm having QML application and backend is QT (Qt 5.15) , in my application i'm using chartview
with QApplication its working fine But need to ask is there any problem we might face in project or application if use QApplication instead of QGuiApplication for Qt 5.15 ,QGuiApplication - base class + GUI capabilities. Use it in QML applications.
QApplication - base class + GUI + support for widgets. Use it in QtWidgets applications.@KRHC hi and welcome to devnet,
You need QApplication if you use anything that relies on the widgets module. Otherwise, there's no need for it and you would just bloat your deployment for no good reason.
-