How lukarty/qkd_techpo works
QKDStand is a Qt desktop application for operating and monitoring a quantum-key-distribution hardware stand. The user workflow runs from the main window through hardware controls or a background protocol worker, which configures the stand, reads signal levels, and applies protocol-specific bit decisions; the UI also exposes monitoring and analysis views. The source index and excerpts support these principal interactions, but not the wiring of every dialog or the lower-level serial/bootloader calls, so those links are omitted.
Main entry points: mainwindow.cpp Main Window · streamwork.cpp Protocol Worker · conserial.cpp Hardware API · qcustomplot.h Plotting Widget
Components 14
Desktop UI
- Qt Application
sources/main.cpp - Main Window
sources/mainwindow.cpp - COM Port Selector
sources/com_combobox.cpp - Admin Login
sources/adminlogin.cpp - Help Window
sources/helpwindow.cpp
QKD Protocols
- Protocol Worker
streamwork.cpp - Protocol Decisions
streamwork.cpp
Stand Hardware
- Hardware API
sources/conserial.cpp - Serial Transport
sources/ceSerial.cpp - Firmware Update
sources/bootloader.cpp
Analysis Views
- Plotting Widget
headers/qcustomplot.h - Signal Histogram
sources/histogram.cpp - Evaluation Histogram
sources/histogrameva.cpp
Other components
- Operator
Connections 11
- Operator → Main Window: operates
- Qt Application → Main Window: creates
sources/main.cpp - Main Window → COM Port Selector: sets stand
sources/mainwindow.cpp - COM Port Selector → Hardware API: sets port
sources/com_combobox.cpp - Main Window → Hardware API: controls stand
sources/mainwindow.cpp - Main Window → Protocol Worker: starts worker
sources/mainwindow.cpp - Protocol Worker → Hardware API: requests readings
streamwork.cpp - Protocol Worker → Protocol Decisions: applies decisions
streamwork.cpp - Main Window → Plotting Widget: updates graph
sources/mainwindow.cpp - Signal Histogram → Plotting Widget: uses plotting
- Evaluation Histogram → Plotting Widget: uses plotting