blob: 2e8ef1d7dba0cde50aa862bcffde004072c55741 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <qtsystemexceptionhandler.h>
#include <QCoreApplication>
#include <QTimer>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
a.setApplicationName("testapp");
a.setApplicationVersion("1.0.0");
QtSystemExceptionHandler exceptionHandler;
QTimer::singleShot(100, [] { QtSystemExceptionHandler::crash(); });
return a.exec();
}
|