{"id":29139667,"url":"https://github.com/samamou/qtquick-custom-types","last_synced_at":"2026-04-29T19:04:34.434Z","repository":{"id":224582640,"uuid":"763651677","full_name":"samamou/qtquick-custom-types","owner":"samamou","description":"Demonstrates how to create custom C++ types, register them with the QML type system, and use them in a QML file","archived":false,"fork":false,"pushed_at":"2024-03-14T21:35:31.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-30T02:13:47.624Z","etag":null,"topics":["cpp","qml","qt"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samamou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-26T17:24:04.000Z","updated_at":"2025-02-04T23:07:06.000Z","dependencies_parsed_at":"2024-02-26T18:43:57.360Z","dependency_job_id":"0bbe0a6d-5799-4dd8-b648-c4b7b3f48f8e","html_url":"https://github.com/samamou/qtquick-custom-types","commit_stats":null,"previous_names":["samamou/qt-quick-custom-types-demo","samamou/qtquick-custom-types"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samamou/qtquick-custom-types","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samamou%2Fqtquick-custom-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samamou%2Fqtquick-custom-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samamou%2Fqtquick-custom-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samamou%2Fqtquick-custom-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samamou","download_url":"https://codeload.github.com/samamou/qtquick-custom-types/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samamou%2Fqtquick-custom-types/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262801918,"owners_count":23366650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","qml","qt"],"created_at":"2025-06-30T15:37:39.491Z","updated_at":"2026-04-29T19:04:29.414Z","avatar_url":"https://github.com/samamou.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Qt Quick Custom Types Demo\n\nThis is a Qt Quick application that demonstrates the use of custom C++ types in QML.\n\n## Overview\n\nThe application uses `QGuiApplication` and `QQmlApplicationEngine` to handle GUI-specific aspects and load/run QML files.\n\nTwo custom C++ types, `MyObject` and `DataModel`, are registered with the QML type system using `qmlRegisterType`. `MyObject` has properties `foo` and `bar`, and a default three-way comparison operator. `DataModel` has a `data` property of type `MyObject` and a `toJson` function.\n\nIn `Main.qml`, a `Window` is created with a `DataModel` object and a `TextArea`. The `DataModel` object's `data` property is logged, updated, and logged again. The `TextArea` displays the initial and updated values of `data`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamamou%2Fqtquick-custom-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamamou%2Fqtquick-custom-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamamou%2Fqtquick-custom-types/lists"}