-
Notifications
You must be signed in to change notification settings - Fork 0
2.11
nucularmoo edited this page Mar 29, 2018
·
6 revisions
Explanation of the contents of a topic page @ Topic reference page
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.
- What is a JavaScript global object?
- 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)
- Why do the intermediate students still think you can add new objects to the QML global object?
http://doc.qt.io/qt-5/qtqml-documents-scope.html