A modular desktop application built with C++, Qt 5, and QML for managing client profiles, contact points, addresses, and appointments. The application follows an enterprise n-tier architecture separating presentation (QML/C++ bindings), core domain logic/models (cm-lib), and automated unit tests (cm-tests).
The project is structured as a multi-tier Qt subdirs build:
cm-ui: Front-end layer utilizing QML, custom controls, Font Awesome icons, and styling components. Exposes C++ view-controllers into the QML engine context.cm-lib: Core static/shared library containing:- Controllers: Application lifecycle (
MasterController), navigation routing (NavigationController), command dispatching (CommandController), and database transactions (DatabaseController). - Data Framework: Extensible Entity-Component framework (
Entity,EntityCollection) paired with property decorators (StringDecorator,IntDecorator,DateTimeDecorator,EnumeratorDecorator) supporting JSON serialization and validation. - Models: Business entities for
Client,Contact,Address,Appointment, andClientSearch. - Networking & RSS: Built-in HTTP client wrapper (
WebRequest,NetworkAccessManager) and XML RSS feed parser for external news aggregation.
- Controllers: Application lifecycle (
cm-tests: Comprehensive unit testing suite based on the Qt Test framework covering model validation, data decorators, entity serialization, and controllers.installer: Windows deployment assets and Qt Installer Framework package configuration.
- Client Directory: Add, update, view, and search clients with real-time field validation.
- Multi-Entity Relationships: Supports multiple contact records, primary addresses, and appointment schedules per client.
- Local Persistence: Backed by embedded SQLite storage (
cm.sqlite) with schema initialization and JSON entity mapping. - RSS News Feed: Integrated background RSS feed parser (
cm-lib/source/rss) with custom delegate cards and browser links. - Modern QML Interface: Custom themed layout featuring collapsible side navigation, command action bars, responsive forms, and date-time pickers.
- Qt Framework: Qt 5.15.x (Qt Core, Qt GUI, Qt Quick, Qt Qml, Qt Network, Qt Sql, Qt Xml)
- Compiler: C++17 compliant compiler (MSVC 2019+, GCC 9+, or Clang 10+)
- Build System: QMake
git clone https://github.com/eng-muhammad-hamza/cms.git
cd cms- Open
cm.proin Qt Creator. - Select your Qt 5.15 desktop kit.
- Run Build All or press
Ctrl + B. - Run
cm-uitarget (Ctrl + R).
# On Linux/macOS
qmake cm.pro -spec linux-g++
make -j$(nproc)
# On Windows (cmd / MinGW / MSVC prompt)
qmake cm.pro
nmake # or mingw32-make / makeCompiled binaries and intermediate object files are placed under the binaries/ directory based on the active target platform configuration.
Unit tests are compiled as part of the cm-tests subproject:
cd cm-tests
qmake cm-tests.pro
make
./binaries/.../cm-tests- Database: SQLite database file (
cm.sqlite) is created automatically in the working directory on first launch. - RSS Parser Source: The RSS feed endpoint can be adjusted in
MasterController/ networking controllers (defaults to BBC News feed).
This project is licensed under the MIT License. See LICENSE for details.