区分 Win/Linux/Mac 系统.
Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
parent
b0fe752aff
commit
60448782c8
8
main.cpp
8
main.cpp
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue