区分 Win/Linux/Mac 系统.

Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
rick.chan 2020-08-28 13:48:30 +08:00
parent b0fe752aff
commit 60448782c8
1 changed files with 6 additions and 2 deletions

View File

@ -5,12 +5,16 @@
#include "qtproaddfilehelper.h"
#include <QApplication>
#include <QtGlobal>
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();