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.
21 lines
504 B
21 lines
504 B
#include <QApplication>
|
|
#include <QQmlApplicationEngine>
|
|
#include "myclass.h"
|
|
//#include <QDebug>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication app(argc, argv);
|
|
|
|
QQmlApplicationEngine engine;
|
|
engine.load(QUrl(QStringLiteral("qrc:///qml/main.qml")));
|
|
|
|
MyClass myClass;
|
|
|
|
// qDebug() << engine.rootObjects().length();
|
|
QObject *mainWindow = engine.rootObjects()[0];
|
|
QObject::connect(mainWindow, SIGNAL(helpMenuTriggered()), &myClass, SLOT(aboutQt()));
|
|
|
|
return app.exec();
|
|
}
|