From 5ffb731e9b537fce9884260b976ceba46abc2b39 Mon Sep 17 00:00:00 2001 From: chenhuijun Date: Thu, 6 Jun 2024 13:42:49 +0800 Subject: [PATCH] feat: Add DCMTK dict file load logic in main function --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index a300bf8..f07ef22 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -47,7 +47,8 @@ int main(int argc, char* argv[]) //qputenv("QT_LOGGING_RULES", QByteArray("qt.virtualkeyboard=true")); - + const char* dicomDictPath = "/usr/local/share/dcmtk/dicom.dic"; + setenv("DCMDICTPATH", dicomDictPath, 1); UsctApplication a(argc, argv); qRegisterMetaType>("QPair"); qRegisterMetaType("Qt::Orientation");