Replaced `MyWindow` with `MainWindow` featuring dynamic device widgets. Introduced `DeviceInfo`, `DeviceDAO`, and improved database interaction. Added flow layout and refactored image handling for better performance.
19 lines
364 B
C++
19 lines
364 B
C++
#pragma once
|
|
#include <QMainWindow>
|
|
#include <QVBoxLayout>
|
|
#include <QTimer>
|
|
#include "DeviceInfo.h"
|
|
#include "widget/FlowLayout.h"
|
|
|
|
class MainWindow final : public QMainWindow {
|
|
Q_OBJECT
|
|
public:
|
|
explicit MainWindow(QWidget *parent = nullptr);
|
|
void loadDevices() const;
|
|
|
|
private:
|
|
QWidget* central;
|
|
FlowLayout* flowLayout;
|
|
QTimer* timer;
|
|
};
|