1 #include "calledbyqml.h"
2 #include <libhomescreen.hpp>
3 #include <QGuiApplication>
4 #include <QQmlApplicationEngine>
8 CalledByQml::CalledByQml(QObject *parent) :
13 int CalledByQml::consoleout()
15 qDebug("consoleout method is called");
16 LibHomeScreen libHomeScreen;
17 libHomeScreen.hardKeyPressed(1);
21 int CalledByQml::showup()
23 qDebug("showup method is called");
24 QGuiApplication app2();
25 QQmlApplicationEngine engine2;
26 QString target(getenv("AFM_APP_INSTALL_DIR"));
27 qDebug("AFM_APP_INSTALL_DIR is " + target.toLatin1());
35 load_path = target + "/main2.qml";
36 //engine2.load(QUrl(load_path));