forked from masonhuang/cluster4npu
- result_handler: add _InferenceResultEncoder to handle dataclass objects (ObjectDetectionResult, ClassificationResult) in JSON serialization; fixes "Object of type ObjectDetectionResult is not JSON serializable" - deployment: replace textCursor().movePosition() with toPlainText/setPlainText for log trimming; eliminates QTextCursor cross-thread Qt warning - main: remove duplicate setAttribute(AA_EnableHighDpiScaling) call in setup_application() which ran after QApplication was already created; fixes "Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created" Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>