Sat, 12 Feb 2022 21:24:43 +0100
We can fetch a list of suppliers and show it in the wrong window. Still a lot to learn about Qt5
#ifndef _MAINWINDOW_H #define _MAINWINDOW_H #include "InventorySuppliers.h" #include <QMainWindow> #include <QStandardItemModel> #include <QMenu> #include <QToolButton> namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); private slots: void on_actionExit_triggered(); void on_actionSuppliers_triggered(); void on_actionAbout_triggered(); public slots: void fromInventorySuppliers(); private: Ui::MainWindow *ui; // Keep pointers to new windows. InventorySuppliers *InventorySuppliersWindow; }; #endif