Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Display QChartView in Dialog
cpper last edited by
Hello. I know I'm able to display a chart in the MainWindow by calling setCentralWidget(chartView).
However, I want to display the chart in second Dialog(which inherits QDialog) when clicking on a push button, but it seems there's no setCentralWidget() function to call. How could I display the widget in another window than MainWindow ?
You can use set a layout on your dialog and put your QChatView in the layout.