-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
26 lines (19 loc) · 706 Bytes
/
main.cpp
File metadata and controls
26 lines (19 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "MainWindow.h"
#include <QApplication>
int main(int argc, char **argv)
{
// Every Qt GUI needs a QApplication.
QApplication app(argc, argv);
app.setOrganizationName("BluePanel");
app.setOrganizationDomain("BluePanel.org");
app.setApplicationName("LagunaChat");
app.setWindowIcon(QIcon(":/internet-chat-2.png"));
// This is your MainWindow that you created with Designer
// Declare it and show it.
MainWindow mainWindow;
mainWindow.show();
// This will not return until the last window is closed.
// This runs the GUI's event loop handling painting and
// user input and stuff like that.
return app.exec();
}