Qt Declarative (Quick 2)
Go to file
Ulf Hermann 3195b44e1c Allow more options for creating value types from JS objects
We allow value types to be created
1. by calling Q_INVOKABLE constructors
2. by setting their values from properties of a JS object

Both have to be opted into by setting a class info. If opted into, these
options override the existing methods. When a a type can be created by
setting its properties, that implies you can also initialize it using an
invokable constructor. However, when given a JS object, the properties
method is used.

We keep this internal and undocumented for now. As the last try (the
create(QJSValue) methods and QJSValue ctors) was not that stellar, let's
first wait a bit and see if we're getting it right this time around.

Fixes: QTBUG-106480
Change-Id: I767230924afcba032d501846cc3263dad57b7bf0
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2022-09-24 07:54:29 +00:00
LICENSES Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
cmake Add qml_compile_hash_p.h to the Qml module sources 2022-09-22 11:11:11 +02:00
coin Coin: Add core count config 2022-09-13 10:45:28 +00:00
dist Merge qtquickcontrols2 into qtdeclarative 2021-07-28 11:21:25 +02:00
examples Examples: Fix .pro files for chattutorial 2022-09-16 05:23:26 +00:00
features Add the skeleton for a D3D12 backend 2016-02-19 14:51:37 +00:00
src Allow more options for creating value types from JS objects 2022-09-24 07:54:29 +00:00
tests Allow more options for creating value types from JS objects 2022-09-24 07:54:29 +00:00
tools qmltc: append to lists in one go 2022-09-22 10:19:36 +02:00
.cmake.conf Bump version to 6.5.0 2022-06-13 13:01:28 +03:00
.gitattributes qmlformat: improve testing of file based options 2021-11-04 13:35:48 +01:00
.gitignore Merge qtquickcontrols2 into qtdeclarative 2021-07-28 11:21:25 +02:00
.gitmodules Update to the latest version of the ecmascript test suite 2018-04-26 20:26:36 +00:00
.tag Use tree hash rather than commit hash in .tag file 2022-01-25 23:55:27 +01:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-09-07 17:01:30 +02:00
README.md Rewrite README.md 2021-08-12 13:15:17 +00:00
conanfile.py Use SPDX license identifiers 2022-06-11 08:05:15 +02:00
configure.cmake Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-09-07 17:01:30 +02:00
dependencies.yaml Update dependencies on 'dev' in qt/qtdeclarative 2022-09-22 12:33:04 +00:00
qt_cmdline.cmake Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-09-07 17:01:30 +02:00
qtdeclarative.doxy Add doxyfile for building doxygen documentation 2018-08-16 15:54:40 +00:00
sync.profile qmltyperegistrar: Extract into own library 2022-07-01 13:55:42 +02:00