{"id":17358637,"url":"https://github.com/babak2/qtsampler","last_synced_at":"2026-05-01T10:31:39.617Z","repository":{"id":206727519,"uuid":"717562514","full_name":"babak2/QtSampler","owner":"babak2","description":"Qt demo using C++","archived":false,"fork":false,"pushed_at":"2023-11-17T17:15:54.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T16:17:32.076Z","etag":null,"topics":["cpp","qt","qt5-gui"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/babak2.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":"2023-11-11T21:03:45.000Z","updated_at":"2023-11-17T17:19:13.000Z","dependencies_parsed_at":"2023-11-14T02:28:30.900Z","dependency_job_id":"ec64b5bd-47a2-48bf-a678-42ca087b621c","html_url":"https://github.com/babak2/QtSampler","commit_stats":null,"previous_names":["babak2/qtsampler"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/babak2/QtSampler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babak2%2FQtSampler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babak2%2FQtSampler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babak2%2FQtSampler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babak2%2FQtSampler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/babak2","download_url":"https://codeload.github.com/babak2/QtSampler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/babak2%2FQtSampler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32494270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["cpp","qt","qt5-gui"],"created_at":"2024-10-15T19:06:16.835Z","updated_at":"2026-05-01T10:31:39.597Z","avatar_url":"https://github.com/babak2.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QtSampler\n\nOverview:\n\nQtSampler is a simple Qt application that serves as a starting point for developers looking to build graphical user interface (GUI) applications using the Qt framework. It provides a basic structure and functionality to help you understand how to create Qt-based projects.\n\nFeatures:\n\n- Minimalistic GUI application.\n- Utilizes Qt Widgets for the graphical interface.\n- Written in C++ for flexibility and performance.\n- Easy-to-understand code structure for educational purposes.\n\n\n## Table of Contents\n\n- [Prerequisites](#prerequisites)\n- [Installation](#installation)\n  - [Qt Installation](#qt-installation)\n  - [Building the Project](#building-the-project)\n   - [To Run](#to-run)\n- [License](#license)\n\n\n\n## Prerequisites\n\nBefore you begin, ensure you have met the following requirements:\n\n1. **C++ Compiler:**\n   - Your preferred C++ compiler (e.g., GCC, Clang).\n\n2. **Qt Framework:**\n   - Version 5.12.8 or higher.\n   - Modules: Widgets, Core, Gui.\n\n3. **Build System:**\n   - qmake (typically included with Qt).\n\n4. **Operating System:**\n   - Linux (Ubuntu)\n\n\n### Qt Installation\n\nThis project relies on the Qt framework. Follow the steps below to install Qt:\n\n1. **Download Qt:**\n   Visit the official [Qt download page](https://www.qt.io/download) and download the installer for your platform.\n\n2. **Install Qt:**\n   Run the downloaded installer and follow the installation instructions. Make sure to select the necessary components, including the Qt version, modules (e.g., Qt Widgets), and tools.\n\n3. **Set up Qt Paths:**\n   After installation, add the Qt bin directory to your system PATH. For example, on Linux, add the following line to your shell profile file (e.g., `~/.bashrc` or `~/.zshrc`):\n\n   ```\n   export PATH=\"/path/to/qt/bin:$PATH\"\n   ```\n\n### Qt Installation on Ubuntu\n\nOn Ubuntu or other Debian-based Linux distributions, use the following command to install the Qt 5 framework:\n\n```\nsudo apt update\nsudo apt install qt5-default\n```\n\nThis command installs the default version of the Qt framework (Qt 5) along with essential development tools.\n\n\n**Verify the Installation:**\n\nAfter the installation, you can verify that Qt is installed correctly by checking the installed version:\n\n```\nqmake --version\n```\n\nThis should display information about the installed version of qmake, the build date, and the Qt version.\n\nFor example: \n\u003ccode style=\"background-color: #f0f0f0; padding: 10px; display: block;\"\u003e\nQMake version 3.1\nUsing Qt version 5.12.8 in /usr/lib/x86_64-linux-gnu\n\u003c/code\u003e\n\n\n### Setting Up Visual Studio Code for Qt Development\n\nInside the `.vscode` folder, in `c_cpp_properties.json` file, make sure to modify \"compilerPath\" value to point to the location of your GCC compiler, if your GCC location is different.\n\nAlso, make sure to modify \"includePath\" value to point to the location of your Qt library if you have a different version of Qt or a different directory structure (other than `/usr/include/x86_64-linux-gnu/qt5`).\n\u003ccode style=\"background-color: #f0f0f0; padding: 10px; display: block;\"\u003e\n{\n  \"configurations\": [\n    {\n      \"name\": \"Linux\",\n      \"includePath\": [\n      \"${workspaceFolder}/**\",\n        \"/usr/include/x86_64-linux-gnu/qt5/QtWidgets\",\n        \"/usr/include/x86_64-linux-gnu/qt5\"\n      ],\n      \"defines\": [\n        \"_DEBUG\",\n        \"UNICODE\"\n      ],\n      \"compilerPath\": \"/usr/bin/gcc\",\n      \"cStandard\": \"c11\",\n      \"cppStandard\": \"c++17\",\n      \"intelliSenseMode\": \"linux-gcc-x64\"\n    }\n  ],\n  \"version\": 4\n}\n\u003c/code\u003e\n\n# Building the Project\n\nFollow these steps to build the project:\n\nClone the Repository:\n\n```\ngit clone https://github.com/babak2/QtSampler.git\ncd QtSampler\n```\n\nIf you have the version of Qt and the same directory structure (`/usr/include/x86_64-linux-gnu/qt5`), you can use the provided Makefile and build the project using: \n\n\n`make`\n\nIf successful, the executable (e.g., QtSampler) should be generated in the project directory.\n\n\n## Generating Makefile (For Different Qt Configurations)\n\nIf you have a different version of Qt or a different directory structure (other than `/usr/include/x86_64-linux-gnu/qt5`), use QtSampler.pro and run the following command to generate the Makefile:\n\n\n```\nqmake -o Makefile QtSampler.pro\n```\n\nBuild the project using:\n\n```\nmake\n```\n\n\n### To Run\n\nExecute the compiled binary:\n\n`./QtSampler`\n\n\n## License\n\nThis program is licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE for more information.\n\n\n## Author \n\nBabak Mahdavi Ardestani\n\nbabak.m.ardestani@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabak2%2Fqtsampler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbabak2%2Fqtsampler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbabak2%2Fqtsampler/lists"}