main.cpp
446 Bytes
#include "loginscreen.h"
#include "chatroom.h"
#include <QApplication>
#include <signal.h>
#include <execinfo.h>
void handler(int sig)
{
void *array[10];
size_t size;
size = backtrace(array, 10);
fprintf(stderr, "SEGFAULT\n");
backtrace_symbols_fd(array, size, STDERR_FILENO);
exit(1);
}
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Chatroom c;
c.show();
c.startSession();
return a.exec();
}