diff --git a/course/Qt/mydll/mydll.cpp b/course/Qt/mydll/mydll.cpp index 2ce9381fc959ac320b30e65d7b6e3b6ce706eb4f..53c2a142ab272744b7710118f516f3b1f948a1dc 100644 --- a/course/Qt/mydll/mydll.cpp +++ b/course/Qt/mydll/mydll.cpp @@ -1,4 +1,5 @@ #include "mydll.h" +#include #include #include #include @@ -8,11 +9,12 @@ #include #include #include - +#include +#include Mydll g_dll; -Mydll::Mydll() +void test_export_resource() { // 测试一个icon { @@ -66,3 +68,20 @@ Mydll::Mydll() // QMediaContent content("qrc:/media/audio/1.mp3"); } + +void MyLog(QtMsgType type, const QMessageLogContext &context, const QString &msg) +{ + OutputDebugStringA(msg.toStdString().data()); +} + +void test_qdebug() +{ + qInstallMessageHandler(MyLog); +} + +Mydll::Mydll() +{ + test_qdebug(); + return; + test_export_resource(); +} diff --git a/course/Qt/mydll/mydll.pro.user b/course/Qt/mydll/mydll.pro.user index 8985d3360d12df5edd44e219d19296d9bbc7a2ce..81942a3f7425987bd5255f82caaf5cbc706ed420 100644 --- a/course/Qt/mydll/mydll.pro.user +++ b/course/Qt/mydll/mydll.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId @@ -58,250 +58,6 @@ ProjectExplorer.Project.Target.0 - - Desktop Qt 5.8.0 MinGW 32bit - Desktop Qt 5.8.0 MinGW 32bit - qt.58.win32_mingw53_kit - 0 - 0 - 0 - - M:/_ALL_/__HuiNing/工具/Qt资源导出dll工程/mydll - - - true - qmake - - QtProjectManager.QMakeBuildStep - true - - false - false - false - - - true - Make - - Qt4ProjectManager.MakeStep - - false - - - - 2 - 构建 - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - true - clean - - - 1 - 清理 - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Debug - - Qt4ProjectManager.Qt4BuildConfiguration - 2 - true - - - M:/_ALL_/__HuiNing/工具/Qt资源导出dll工程/build-mydll-Desktop_Qt_5_8_0_MinGW_32bit-Release - - - true - qmake - - QtProjectManager.QMakeBuildStep - false - - false - false - false - - - true - Make - - Qt4ProjectManager.MakeStep - - false - - - - 2 - 构建 - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - true - clean - - - 1 - 清理 - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Release - - Qt4ProjectManager.Qt4BuildConfiguration - 0 - true - - - M:/_ALL_/__HuiNing/工具/Qt资源导出dll工程/build-mydll-Desktop_Qt_5_8_0_MinGW_32bit-Profile - - - true - qmake - - QtProjectManager.QMakeBuildStep - true - - false - true - false - - - true - Make - - Qt4ProjectManager.MakeStep - - false - - - - 2 - 构建 - - ProjectExplorer.BuildSteps.Build - - - - true - Make - - Qt4ProjectManager.MakeStep - - true - clean - - - 1 - 清理 - - ProjectExplorer.BuildSteps.Clean - - 2 - false - - Profile - - Qt4ProjectManager.Qt4BuildConfiguration - 0 - true - - 3 - - - 0 - 部署 - - ProjectExplorer.BuildSteps.Deploy - - 1 - 在本地部署 - - ProjectExplorer.DefaultDeployConfiguration - - 1 - - - false - false - 1000 - - true - - false - false - false - false - true - 0.01 - 10 - true - 1 - 25 - - 1 - true - false - true - valgrind - - 0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - - 2 - - - - %{buildDir} - Custom Executable - - ProjectExplorer.CustomExecutableRunConfiguration - 3768 - false - true - false - false - true - - 1 - - - - ProjectExplorer.Project.Target.1 Qt 5.8.0 (mingw53_32) Qt 5.8.0 (mingw53_32) @@ -310,7 +66,7 @@ 0 0 - M:/_ALL_/__HuiNing/工具/Qt资源导出dll工程/build-mydll-Qt_5_8_0_mingw53_32-Debug + O:/_ALL/CODE/github/ninecents/MyOpen/course/Qt/mydll true @@ -546,7 +302,7 @@ ProjectExplorer.Project.TargetCount - 2 + 1 ProjectExplorer.Project.Updater.FileVersion