{"id":24926830,"url":"https://github.com/jaytwolab/qml_to_qul","last_synced_at":"2025-08-17T07:04:22.749Z","repository":{"id":273569700,"uuid":"917103488","full_name":"JayTwoLab/qml_to_qul","owner":"JayTwoLab","description":"This program converts QML files to a format compatible with Qt Quick Ultralite (Qul). It detects unsupported QML elements, replaces them with supported alternatives, and saves the converted files to a specified directory.","archived":false,"fork":false,"pushed_at":"2025-01-16T01:12:31.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T13:40:22.450Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/JayTwoLab.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}},"created_at":"2025-01-15T11:08:49.000Z","updated_at":"2025-01-16T01:18:39.000Z","dependencies_parsed_at":"2025-01-21T17:49:38.365Z","dependency_job_id":"7196e6bc-1e18-45af-bbac-e995e298edc7","html_url":"https://github.com/JayTwoLab/qml_to_qul","commit_stats":null,"previous_names":["jaytwolab/qml_to_qul"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/JayTwoLab/qml_to_qul","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayTwoLab%2Fqml_to_qul","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayTwoLab%2Fqml_to_qul/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayTwoLab%2Fqml_to_qul/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayTwoLab%2Fqml_to_qul/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JayTwoLab","download_url":"https://codeload.github.com/JayTwoLab/qml_to_qul/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayTwoLab%2Fqml_to_qul/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270816520,"owners_count":24650824,"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-08-17T02:00:09.016Z","response_time":129,"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":[],"created_at":"2025-02-02T12:53:26.958Z","updated_at":"2025-08-17T07:04:22.720Z","avatar_url":"https://github.com/JayTwoLab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `qml_to_qul` : QML to Qul Converter\n\nThis Python program processes QML files and converts them to a format compatible with Qt Quick Ultralite (Qul). It identifies unsupported QML elements, replaces them with supported alternatives, and saves the updated files to a specified output directory.\n\n## Features\n1. **Unsupported Element Detection**: \n   - The `detect_unsupported_elements` function scans QML files for elements not supported in Qul, such as `ListView`, `Loader`, `GridLayout`, and `Flow`.\n\n2. **Element Replacement**:\n   - The `replace_elements` function transforms unsupported elements into alternatives:\n     - `ListView` → `Column`\n     - `GridLayout` → `Column`\n     - `Flow` → `Row`\n     - `Loader` → Commented out\n\n3. **Batch File Conversion**:\n   - The `convert_qml_files` function processes all `.qml` files in the input directory, applies transformations, and saves the results in the output directory.\n\n4. **Main Function**:\n   - The `main` function orchestrates the conversion process. It accepts input and output directory paths as arguments, ensuring the input directory exists before proceeding.\n\n5. **Example Usage**:\n   - The program can be run directly, with an example demonstrating how to provide input and output paths:\n     ```python\n     if __name__ == \"__main__\":\n         example_input_dir = \"path/to/your/qml/files\"\n         example_output_dir = \"path/to/converted/qml/files\"\n         main(example_input_dir, example_output_dir)\n     ```\n\n## How to Use\n1. Place your QML files in the input directory.\n2. Specify the input and output directories in the `main` function or pass them as arguments.\n3. Run the script to convert the QML files to a Qul-compatible format.\n\n## Notes\n- Only basic unsupported elements are replaced; complex dynamic behaviors must be handled manually.\n- Ensure the output directory is writable and sufficient permissions are set.\n\n## License\n- MIT License\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaytwolab%2Fqml_to_qul","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaytwolab%2Fqml_to_qul","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaytwolab%2Fqml_to_qul/lists"}