• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

kapptemplate

  • sources
  • kde-4.12
  • kdesdk
  • kapptemplate
  • templates
  • QML
  • qt5-qml2
  • src
templates/QML/qt5-qml2/src/main.cpp
Go to the documentation of this file.
1 
2 #include <QGuiApplication>
3 #include <QtQuick/QQuickView>
4 #include <QtQml/QQmlEngine>
5 
6 
7 Q_DECL_EXPORT int main(int argc, char *argv[])
8 {
9  QGuiApplication app(argc, argv, 5);
10 
11  QQuickView viewer;
12  viewer.setSource(QUrl("src/qml/main.qml"));
13  viewer.show();
14 
15  QObject::connect(viewer.engine(), SIGNAL(quit()), qApp, SLOT(quit()));
16  return app.exec();
17 }
main
Q_DECL_EXPORT int main(int argc, char *argv[])
Definition: templates/QML/qt5-qml2/src/main.cpp:7
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kapptemplate

Skip menu "kapptemplate"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal