The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)
Libglacierapp
From Mer Wiki
(Difference between revisions)
(→in pro file) |
|||
| Line 13: | Line 13: | ||
CONFIG += link_pkgconfig | CONFIG += link_pkgconfig | ||
LIBS += -lglacierapp | LIBS += -lglacierapp | ||
| + | |||
| + | ===in main.cpp=== | ||
| + | |||
| + | #include <QGuiApplication> | ||
| + | #include <QQmlApplicationEngine> | ||
| + | #include <QQuickWindow> | ||
| + | #include <glacierapp.h> | ||
| + | int main(int argc, char *argv[]) | ||
| + | { | ||
| + | QGuiApplication *app = GlacierApp::app(argc, argv); | ||
| + | QQuickWindow *window = GlacierApp::showWindow(); | ||
| + | window->setTitle(QObject::tr("Example")); | ||
| + | app->exec(); | ||
| + | } | ||
| + | |||
| + | ===on install=== | ||
| + | Main qml file must be called as $TARGER.qml and installed to /usr/share/$TAGRET/qml/ | ||
| + | |||
| + | Translations file must be installed to /usr/share/$TARGET/translations/ | ||
[[Category:Nemo]] | [[Category:Nemo]] | ||
[[Category:GlacierUX]] | [[Category:GlacierUX]] | ||
Revision as of 14:42, 28 March 2018
Contents |
Introduction
Libglacier app provide some simplitification to create application for Glacier UX
Get Source
Latest sources you can get in Nemo-UX github. Last compiled rpm packages you can get it on nemo ux devel obs
Develop
in pro file
Add support of glacier library
CONFIG += link_pkgconfig LIBS += -lglacierapp
in main.cpp
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQuickWindow>
#include <glacierapp.h>
int main(int argc, char *argv[])
{
QGuiApplication *app = GlacierApp::app(argc, argv);
QQuickWindow *window = GlacierApp::showWindow();
window->setTitle(QObject::tr("Example"));
app->exec();
}
on install
Main qml file must be called as $TARGER.qml and installed to /usr/share/$TAGRET/qml/
Translations file must be installed to /usr/share/$TARGET/translations/