You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
505 B
19 lines
505 B
7 years ago
|
#include <QGuiApplication>
|
||
|
#include <QQmlApplicationEngine>
|
||
|
#include <quickpresenter.h>
|
||
|
#include <%{AppHdrName}>
|
||
|
|
||
|
REGISTER_CORE_APP(%{AppCn})
|
||
|
|
||
|
int main(int argc, char *argv[])
|
||
|
{
|
||
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||
|
QGuiApplication app(argc, argv);
|
||
|
|
||
|
qmlRegisterUncreatableType<%{ControlCn}>("com.example.%{ProjectLowerName}", 1, 0, "%{ControlCn}", "Controls cannot be created!");
|
||
|
|
||
|
QuickPresenter::createAppEngine(QUrl(QLatin1String("qrc:/qml/App.qml")));
|
||
|
|
||
|
return app.exec();
|
||
|
}
|