-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.cpp
More file actions
34 lines (27 loc) · 856 Bytes
/
Copy pathmain.cpp
File metadata and controls
34 lines (27 loc) · 856 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
27
28
29
30
#include "mainwindow.h"
#include <QApplication>
/*
#include <QDebug>
#include <QMessageLogContext>
#include <QCoreApplication>
void myMessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg)
{
if (msg.contains("QAbstractSocket::connectToHost()")) {
qDebug() << "Debug-Breakpoint erreicht";
volatile int dummy = 1;
while (dummy); // Hier im Debugger: dummy auf 0 setzen → geht weiter
}
// Standardausgabe beibehalten
QByteArray localMsg = msg.toLocal8Bit();
fprintf(stderr, "%s (%s:%u, %s)\n", localMsg.constData(),
context.file, context.line, context.function);
}
*/
int main(int argc, char *argv[])
{
// qInstallMessageHandler(myMessageHandler); // <--- hier aktivieren
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}