Qt Utilities 6.14.3
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
Loading...
Searching...
No Matches
aboutdialog.h
Go to the documentation of this file.
1#ifndef DIALOGS_ABOUTDIALOG_H
2#define DIALOGS_ABOUTDIALOG_H
3
4#include "../global.h"
5
6#include <QDialog>
7
8#include <memory>
9
10QT_FORWARD_DECLARE_CLASS(QGraphicsScene)
11
12namespace QtUtilities {
13
14namespace Ui {
15class AboutDialog;
16}
17
18class QT_UTILITIES_EXPORT AboutDialog : public QDialog {
19 Q_OBJECT
20
21public:
22 explicit AboutDialog(QWidget *parent, const QString &applicationName, const QString &creator, const QString &version,
23 const QString &website = QString(), const QString &description = QString(), const QImage &image = QImage());
24 explicit AboutDialog(QWidget *parent, const QString &applicationName, const QString &creator, const QString &version,
25 const std::vector<const char *> &dependencyVersions, const QString &website = QString(), const QString &description = QString(),
26 const QImage &image = QImage());
27 explicit AboutDialog(QWidget *parent, const QString &website = QString(), const QString &description = QString(), const QImage &image = QImage());
28 ~AboutDialog() override;
29
30Q_SIGNALS:
32
33protected:
34 bool event(QEvent *event) override;
35
36private Q_SLOTS:
37 void linkActivated(const QString &link);
38
39private:
40 std::unique_ptr<Ui::AboutDialog> m_ui;
41 QGraphicsScene *m_iconScene;
42};
43} // namespace QtUtilities
44
45#endif // DIALOGS_ABOUTDIALOG_H
The AboutDialog class provides a simple about dialog.
Definition aboutdialog.h:18
#define QT_UTILITIES_EXPORT
Marks the symbol to be exported by the qtutilities library.
Definition global.h:14