A sophisticated desktop application developed in C++ using the Qt 6 Framework. This project simulates a biological research environment where multiple biologists can manage bacterial cultures and diseases simultaneously.
It demonstrates advanced GUI techniques including Model/View Architecture, Custom Painting, and the Observer Design Pattern for real-time synchronization across multiple windows.
- Qt Model/View Architecture: Implemented a custom
QAbstractTableModel(BacteriumTableModel) to display complex data in tabular format efficiently. This allows for sorting and filtering directly within the view logic. - Observer Design Pattern: The application supports multiple concurrent windows (simulating different biologists). When one user adds a bacterium or disease, all other open windows update instantly without manual refreshing.
- Custom 2D Graphics: Includes a
SpeciesVisualizerusingQPainterto render geometric representations of bacteria populations based on real-time data attributes. - Layered Architecture:
- Domain:
Bacterium,Biologistentities. - Repository: Handles data persistence (reading/writing to text files).
- Service: Business logic and coordination between the repository and GUI.
- GUI: Custom Windows and Visualization widgets.
- Domain:
- Multi-Window Sync: Changes made in the "Alex" window are immediately reflected in the "Tudor" window.
- Data Management: Add bacteria and associated diseases.
- Filtering: Filter table data by species type using a ComboBox.
- Visualization: A dedicated view (
SpeciesVisualizer) draws shapes representing the bacteria count and types.
āāā domain/ # Bacterium, Biologist classes
āāā repository/ # File handling logic
āāā service/ # Controller logic
āāā models/ # Custom QAbstractTableModel implementation
āāā gui/ # BiologistWindow and SpeciesVisualizer
āāā observer/ # Observer interface