Guest User

Untitled

a guest
Nov 24th, 2014
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 2.57 KB | None | 0 0
  1. #ifdef QT_QML_DEBUG
  2. #include <QtQuick>
  3. #endif
  4.  
  5. #include <QGuiApplication>
  6. #include <QQuickView>
  7. #include <QtQml>
  8.  
  9. #include <sailfishapp.h>
  10. #include "BusReader.h"
  11.  
  12. int main(int argc, char *argv[])
  13. {
  14.     // SailfishApp::main() will display "qml/template.qml", if you need more
  15.     // control over initialization, you can use:
  16.     //
  17.     //   - SailfishApp::application(int, char *[]) to get the QGuiApplication *
  18.     //   - SailfishApp::createView() to get a new QQuickView * instance
  19.     //   - SailfishApp::pathTo(QString) to get a QUrl to a resource file
  20.     //
  21.     // To display the view, call "show()" (will show fullscreen on device).
  22.  
  23.      // qmlRegisterType <BusReader> ( "com.saildev.components", 1, 0, "BusReader" );
  24.  
  25. //    return SailfishApp::main(argc, argv);
  26.     QGuiApplication * q_application = SailfishApp :: application ( argc, argv );
  27.        QQuickView * q_view = SailfishApp :: createView ( );
  28.  
  29.        qmlRegisterType <BusReader> ( "com.saildev.components", 1, 0, "BusReader" );
  30.  
  31.        q_view -> setSource ( SailfishApp :: pathTo ( "qml/pages/FirstPage.qml" ));
  32.        q_view -> showFullScreen ( );
  33.  
  34.        return q_application -> exec ( );
  35. }
  36.  
  37. [D] QWaylandEglIntegration::QWaylandEglIntegration:58 - Using Wayland-EGL
  38. [W] QQmlImportDatabase::importPlugin:1697 - Module 'Sailfish.Silica' does not contain a module identifier directive - it cannot be protected from external registrations.
  39.  
  40. Unable to open input file: No such file or directory
  41. [W] QFeedbackFFMemless::initialiseEffects:289 - bool QFeedbackFFMemless::initialiseEffects() Error: did not find vibra spi device!
  42. [W] unknown:393 - file:///usr/lib/qt5/qml/Sailfish/Silica/private/PulleyMenuBase.qml:393: ReferenceError: __silica_applicationwindow_instance is not defined
  43. [W] unknown:108 - file:///usr/lib/qt5/qml/Sailfish/Silica/Page.qml:108: ReferenceError: __silica_applicationwindow_instance is not defined
  44. [W] unknown:94 - file:///usr/lib/qt5/qml/Sailfish/Silica/Page.qml:94: ReferenceError: __silica_applicationwindow_instance is not defined
  45. [W] unknown:176 - file:///usr/lib/qt5/qml/Sailfish/Silica/Page.qml:176: ReferenceError: __silica_applicationwindow_instance is not defined
  46. [W] unknown:331 - file:///usr/lib/qt5/qml/Sailfish/Silica/private/PulleyMenuBase.qml:331: ReferenceError: __silica_applicationwindow_instance is not defined
  47. [W] unknown:43 - file:///usr/lib/qt5/qml/Sailfish/Silica/PageHeader.qml:43: ReferenceError: pageStack is not defined
  48. [W] unknown:134 - file:///usr/lib/qt5/qml/Sailfish/Silica/private/TextBase.qml:134: ReferenceError: __silica_applicationwindow_instance is not defined
Advertisement
Add Comment
Please, Sign In to add comment