Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

About the impact of changing from QGuiApplication to QApplication



  • Hi.
    I want to draw a chart such as a pie chart using QML.
    I found out that QtCharts provides an API for that and tried to implement it.
    However, I learned that in order to use QtCharts, I have to use QApplication instead of QGuiApplication.

    So the question is, how does using QApplication instead of QGuiApplication in a Qt Quick application affect my development application?
    I recognize that QApplication is a class of Qt Widget modules.
    The biggest concern is drawing performance.
    I'm worried that Qt Quick's strength, hardware acceleration, will have a negative impact on performance gains.


  • Moderators

    @ynakane since QApplication inherits from QGuiApplication,
    f5c4217f-cad2-40da-b117-f2c7146782c2-image.png

    you should not notice a difference in your old code