#include "loginscreen.h" #include "chatroom.h" #include #include #include 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(); }