Best Design Practices Using the Qt Runtime SDK (using QML) - PowerPoint PPT Presentation

About This Presentation
Title:

Best Design Practices Using the Qt Runtime SDK (using QML)

Description:

Best Design Practices Using the Qt Runtime SDK (using QML) Michael Tims Esri Session Agenda Bundled SDK Components Toolkit Extras Modularize your QML Components ... – PowerPoint PPT presentation

Number of Views:145
Avg rating:3.0/5.0
Slides: 11
Provided by: esr110
Category:

less

Transcript and Presenter's Notes

Title: Best Design Practices Using the Qt Runtime SDK (using QML)


1
Best Design Practices Using the Qt Runtime SDK
(using QML)
  • Michael Tims Esri

2
Session Agenda
  • Bundled SDK Components
  • Toolkit
  • Extras
  • Modularize your QML Components
  • JavaScript code in QML
  • Object ownership and garbage collection
  • Property binding
  • Property notifications
  • Model/View
  • Testing and Deployment
  • QA

3
Bundled SDK Components
  • Use whats already available to you
  • Toolkit - Controls and Dialogs
  • Reuse or subclass existing components
  • ArcGIS Extras plugin for Qt
  • High-demand APIs exposed to QML
  • File I/O
  • Application settings
  • UI scale factor

4
Modularize your QML Components
  • Break apart UI from business logic
  • Keep your UI in separate QML files
  • Declare component as a local type
  • Access components through custom properties

5
JavaScript code in QML
  • QML is a JavaScript-based language
  • Write or use existing JavaScript code in QML
  • Write custom JavaScript functions
  • Use common JavaScript objects (Math, Date, etc)
  • Be aware of object ownership
  • QML-declared components are owned by the QML
    Engine/JS Engine
  • Objects returned from ArcGISRuntime.createObject()
    are given JS ownership

6
Property binding
  • The basis for property notifications
  • UI updates when property changes
  • Property notifies any other bound property that
    it has changed
  • Create property bindings from JavaScript
  • property Qt.binding(function() return
    calculated_value )
  • Models and Views
  • Models notify the view to update when data
    changes
  • Binding list properties to QML views

7
Testing and Deployment
  • Test and debug your app directly from Qt Creator
  • Deploy your app with local data

8
Thank you
  • Please fill out the session survey in your mobile
    app
  • Select Best Design Practices Using the Qt
    Runtime SDK (using QML) in the Mobile App
  • Use the Search Feature to quickly find this title
  • Click Demo Theater Survey
  • Answer a few short questions and enter any
    comments

9
Questions?
10
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com