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. About the impact of changing from QGuiApplication to QApplication
Forum Updated to NodeBB v4.3 + New Features

About the impact of changing from QGuiApplication to QApplication

Scheduled Pinned Locked Moved Solved QML and Qt Quick
qguiapplicationqapplicationqtchartsqtchart
4 Posts 2 Posters 1.0k 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.
  • Y Offline
    Y Offline
    ynakane
    wrote on last edited by ynakane
    #1

    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.

    J.HilkJ 1 Reply Last reply
    0
    • Y ynakane

      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.

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

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

      you should not notice a difference in your old code


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      Y 1 Reply Last reply
      1
      • Y Offline
        Y Offline
        ynakane
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • J.HilkJ J.Hilk

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

          you should not notice a difference in your old code

          Y Offline
          Y Offline
          ynakane
          wrote on last edited by
          #4

          @J-Hilk Thank you for answering the question.

          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