#pragma once #include #include #include #include namespace Bloom { class AboutWindow: public QObject { Q_OBJECT private: QWidget* windowWidget = nullptr; public: AboutWindow(QWidget* parent); void show() { if (this->windowWidget != nullptr) { this->windowWidget->move( this->windowWidget->parentWidget()->geometry().center() - this->windowWidget->rect().center() ); this->windowWidget->show(); } } }; }