From 60448782c827e7504f9dab43c6f374bdcdd16f3b Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Fri, 28 Aug 2020 13:48:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E5=88=86=20Win/Linux/Mac=20=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index fcdc880..5791cb6 100644 --- a/main.cpp +++ b/main.cpp @@ -5,12 +5,16 @@ #include "qtproaddfilehelper.h" #include +#include int main(int argc, char *argv[]) { -#ifndef QT_DEBUG +#if defined Q_OS_WIN32 && !defined QT_DEBUG QApplication::setLibraryPaths(QStringList("./plugins/")); -#endif +#elif defined Q_OS_LINUX && !defined QT_DEBUG +#elif defined Q_OS_MAC && !defined QT_DEBUG +#endif // OS && !QT_DEBUG + QApplication a(argc, argv); QtProAddFileHelper w; w.show();