aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/doc_src_deployment.cpp
blob: 04187fd1c15dc2a0caac8acf62fc8aba8ce7f47b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

//! [9]
QCoreApplication::addLibraryPath("/some/other/path");
//! [9]


//! [19]
QCoreApplication::addLibraryPath("C:/some/other/path");
//! [19]


//! [49]
QDir dir(QCoreApplication::applicationDirPath());
dir.cdUp();
dir.cd("plugins");
QCoreApplication::setLibraryPaths(QStringList(dir.absolutePath()));
//! [49]