{"id":19009954,"url":"https://github.com/editorconfig/editorconfig-core-qt","last_synced_at":"2025-06-21T21:04:48.724Z","repository":{"id":41867575,"uuid":"257448693","full_name":"editorconfig/editorconfig-core-qt","owner":"editorconfig","description":"EditorConfig core written for Qt","archived":false,"fork":false,"pushed_at":"2025-04-22T15:14:53.000Z","size":21,"stargazers_count":12,"open_issues_count":0,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-22T22:53:02.719Z","etag":null,"topics":["editorconfig","qt5","qt6"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/editorconfig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2020-04-21T01:29:22.000Z","updated_at":"2025-04-22T15:14:57.000Z","dependencies_parsed_at":"2023-10-10T22:13:54.022Z","dependency_job_id":null,"html_url":"https://github.com/editorconfig/editorconfig-core-qt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/editorconfig/editorconfig-core-qt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/editorconfig%2Feditorconfig-core-qt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/editorconfig%2Feditorconfig-core-qt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/editorconfig%2Feditorconfig-core-qt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/editorconfig%2Feditorconfig-core-qt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/editorconfig","download_url":"https://codeload.github.com/editorconfig/editorconfig-core-qt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/editorconfig%2Feditorconfig-core-qt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261193093,"owners_count":23122905,"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":["editorconfig","qt5","qt6"],"created_at":"2024-11-08T19:09:22.520Z","updated_at":"2025-06-21T21:04:43.710Z","avatar_url":"https://github.com/editorconfig.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EditorConfig Qt Core\n\nEditorConfig core bindings for Qt5 and Qt6. Does not require any external dependencies.\n\n## EditorConfig Project\n\nEditorConfig makes it easy to maintain the correct coding style when switching\nbetween different text editors and between different projects.  The\nEditorConfig project maintains a file format and plugins for various text\neditors which allow this file format to be read and used by those editors.  For\ninformation on the file format and supported text editors, see the\n[EditorConfig website](https://editorconfig.org).\n\n## Build Tool Integration\n\nThis project can be built and used with both qmake and cmake.\n\n### QMake\n\nTo include the library files it is recommend that you add it as a git submodule to your project.\n\n```bash\ngit submodule add https://github.com/editorconfig/editorconfig-core-qt.git editorconfig-core-qt\n```\n\nThen include the `EditorConfig.pri` file in your .pro project file.\n\n```qmake\ninclude(editorconfig-core-qt/EditorConfig.pri)\n```\n\n### CMake\n\nThe easiest way should be to use CPM (https://github.com/cpm-cmake/CPM.cmake). Then, inside your CMake project do:\n\n```CMake\n# Or any other sha1 you want.\nCPMAddPackage(\"gh:editorconfig/editorconfig-core-qt#master\")\n```\n\nYou can alternatively add it as a git submodule and manually use `add_subdirectory()` to add the `CMakeLists.txt` file in your project.\n\n## Usage\nOnce built, the library can then be used within your Qt application.\n\n```c++\n#include \u003cEditorConfig\u003e\n\n...\n\nEditorConfigSettings settings = EditorConfig::getFileSettings(\"path/to/myfile.txt\");\nfor(auto setting : settings.toStdMap()) {\n    std::cout \u003c\u003c qUtf8Printable(setting.first) \u003c\u003c \"=\" \u003c\u003c qUtf8Printable(setting.second) \u003c\u003c std::endl;\n}\n```\n\n## Development\n\nThis has been developed with Qt 5.15+ however previous versions *may* work. To develop/test this module you can use the following instructions:\n\n1. Open `CMakeLists.txt` with Qt Creator\n1. Configure the project and set `BUILD_EDITORCONFIG_CMD` to `ON`\n1. Build the project\n1. If ctests is configured for Qt Creator, it will run the tests\n1. The majority of tests should pass\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feditorconfig%2Feditorconfig-core-qt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feditorconfig%2Feditorconfig-core-qt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feditorconfig%2Feditorconfig-core-qt/lists"}