Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QChart in UI?
Qt 6.11 is out! See what's new in the release blog

QChart in UI?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 5.3k Views 1 Watching
  • 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.
  • AlfacuA Offline
    AlfacuA Offline
    Alfacu
    wrote on last edited by
    #1

    Hello!!
    I have a problem with QChart. I want to put a graph in some place of Form (UI) but i don't know how!!
    I sow some examples but in all the case they are write without UI Form...

    Thank you!!!
    Al

    mrjjM 1 Reply Last reply
    0
    • AlfacuA Alfacu

      Hello!!
      I have a problem with QChart. I want to put a graph in some place of Form (UI) but i don't know how!!
      I sow some examples but in all the case they are write without UI Form...

      Thank you!!!
      Al

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Alfacu

      Hi
      There are no visual Charts to place in ui file BUT you can use promotion to fake it.
      https://forum.qt.io/topic/68370/qt-charts-and-data-visualization-widgets

      1 Reply Last reply
      1
      • Z Offline
        Z Offline
        z69333186
        wrote on last edited by
        #3

        There are no QChart component in UI file, so I recommend you using C++ or QML to display a QChart. But if you want to use the UI Design to visually design the interface, you can try:

        1.place a layout(for example verticalLayout) in the UI

        2.creat a QChartView to contain the QChart(for example, QChartView *chartView = new QChartView(chart))

        3.let the QChartView display in the layout(for example, ui->verticalLayout->addWidget(chartView))

        finished

        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