From 98e526790292cb0011f6ff62f409e481a4e16c45 Mon Sep 17 00:00:00 2001 From: khz-pc Date: Tue, 9 Apr 2019 23:34:14 +0800 Subject: [PATCH] =?UTF-8?q?[Qt]=2001=5FQt=E6=97=A5=E5=BF=97=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- course/Qt/mydll/mydll.cpp | 23 ++- course/Qt/mydll/mydll.pro.user | 250 +-------------------------------- 2 files changed, 24 insertions(+), 249 deletions(-) diff --git a/course/Qt/mydll/mydll.cpp b/course/Qt/mydll/mydll.cpp index 2ce9381..53c2a14 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 8985d33..81942a3 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 -- GitLab