Skip to content
nucularmoo edited this page Mar 29, 2018 · 6 revisions

Global Object (P1 | 1h)

Explanation of the contents of a topic page @ Topic reference page

Back to Week 2

Objective: What is a global object

E: Is there anything comparative to namespace, global declarations etc that we introduced in 1.00 that relate specifically to Qt Quick/QML that would be of use being introduced in the same manner in the QML intro here?

Comment: Not really in C++. In QML, we do have a QML global object similar to JS global object, which provides enums, functions. However, that is covered in 2.11, so I would not include it here.

Beginner

  • What is a JavaScript global object?

Intermediate

  • What is a QML global object?
  • What enum does the QML global object provide?
  • What functions does the QML global object provide?
  • How do you add new objects into the QML global object? (you can't lol)

Expert

  • Why do the intermediate students still think you can add new objects to the QML global object?

Omitted


Course material content

http://doc.qt.io/qt-5/qtqml-documents-scope.html

Instructions and description for the exercise of the topic


Exhaustive reference material mentioned in this topic

Further reading topics/links:

Clone this wiki locally