tried PCH
This commit is contained in:
43
src/main.cpp
43
src/main.cpp
@@ -74,6 +74,49 @@ XQChildModel* createChildModel()
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
|
||||
CONFIG += precompile_header
|
||||
PRECOMPILED_HEADER = pch.h
|
||||
|
||||
// pch.h – Precompiled Header für Qt-Projekt
|
||||
|
||||
Stelle sicher, dass pch.h im Projektordner liegt und in den .cpp-Dateien eingebunden wird:
|
||||
|
||||
C++
|
||||
#include "pch.h"
|
||||
|
||||
#ifndef PCH_H
|
||||
#define PCH_H
|
||||
|
||||
// Qt Core
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QDebug>
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QTimer>
|
||||
#include <QtCore/QDateTime>
|
||||
|
||||
// Qt GUI
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtGui/QIcon>
|
||||
#include <QtGui/QPixmap>
|
||||
|
||||
// Qt Widgets (falls verwendet)
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QMainWindow>
|
||||
#include <QtWidgets/QPushButton>
|
||||
#include <QtWidgets/QLabel>
|
||||
|
||||
// STL
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
|
||||
#endif // PCH_H
|
||||
|
||||
*/
|
||||
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
|
Reference in New Issue
Block a user