src/UI/mainwindow.h

mainwindow [Class]

Description

The MainWindow class inherits from QMainWindow and acts as the central controller for the GUI. It utilizes a QStackedWidget to manage navigation between different application pages (e.g., Welcome, Processing, Graph View).

Public Methods

MainWindow(QWidget *parent = nullptr)
Initializes the main window and all sub-pages.
Parameters
  • parent: Parent widget (default is nullptr).
void switchToPage(int index)
Switches the currently visible page in the stacked widget stack.
Parameters
  • index: Index of the page to switch to.