{"id":20177822,"url":"https://github.com/tfc/qt-example","last_synced_at":"2025-08-09T21:18:55.321Z","repository":{"id":137344961,"uuid":"585142170","full_name":"tfc/qt-example","owner":"tfc","description":"Minimal QtQuick/QML example with nix","archived":false,"fork":false,"pushed_at":"2023-02-06T09:58:43.000Z","size":61,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T06:24:03.407Z","etag":null,"topics":["cmake","cpp","nix","nix-flake","qml","qt","qt6","qtquick"],"latest_commit_sha":null,"homepage":"","language":"CMake","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/tfc.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":"2023-01-04T12:30:12.000Z","updated_at":"2025-03-17T02:56:21.000Z","dependencies_parsed_at":"2023-03-30T20:19:26.958Z","dependency_job_id":null,"html_url":"https://github.com/tfc/qt-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tfc/qt-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfc%2Fqt-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfc%2Fqt-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfc%2Fqt-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfc%2Fqt-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tfc","download_url":"https://codeload.github.com/tfc/qt-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfc%2Fqt-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267417664,"owners_count":24083839,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cmake","cpp","nix","nix-flake","qml","qt","qt6","qtquick"],"created_at":"2024-11-14T02:17:32.893Z","updated_at":"2025-07-27T20:07:21.260Z","avatar_url":"https://github.com/tfc.png","language":"CMake","readme":"# Qt Example App\n\nThis repository contains a minimal QtQuick QML example that looks like this:\n\n![Screenshot of the app](app-screenshot.png)\n\nThe purpose of this repository is to show how to edit, build, and package this\napplication without installing Qt on your system stationary.\n\nTo build or run the app, some prerequisites are needed: Qt, CMake, etc.\nThese can be installed with one step using the package manager **nix**, which\nyou get here: https://nixos.org/download.html\n\nOnce nix is installed, you can run this application without cloning this repository using:\n\n```sh\nnix run github:tfc/qt-example\n```\n\nThis might take a minute because nix first needs to get Qt, compiler, etc. from \nthe internet.\n\n## Building the app locally\n\nAfter you have checked out and `cd`ed into the repository, there are multiple\nways to build the app:\n\n```sh\n# Just build the app\nnix build\n```\n\nnow you can execute it via:\n\n```sh\n./result/bin/qt-example\n```\n\nIf you want to edit, build, and run it from the Qt Creator development environment, you can run that, too:\n\n```sh\nnix develop\nqtcreator\n```\n\nThe first command installs Qt Creator and other dependencies in your local\nshell (which is not system-wide).\nIf you want to get rid of it, run `exit` and that is it.\n\nAs Qt Creator and Qt are typically installed system-wide and hence form some \nassumptions of your system, things might sometimes go wrong.\nI know of the following situations and solutions:\n\n- Qt Creator does not find Qt libraries:\n  - delete all `~/.config/QtProject*` paths, as these could set some wrong assumptions from older versions that you might have installed before\n- Building the app does not work, I get compiler errors\n  - In the Qt Creator options dialog, visit \"kits\" and check the inputs of the \n    C and C++ compiler dropdown lists. \n    The nix shell gives you two compilers there, one with and one without\n    \"wrapped\" in the path. Select the \"wrapped\" one.\n  - Sometimes the qt kit selection is wrong and Qt Creator displays it as\n    \"invalid\". Recheck the valid one that is left in the dropdown.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftfc%2Fqt-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftfc%2Fqt-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftfc%2Fqt-example/lists"}