aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpyside/pysideinit.h
blob: c623a0d27b09ca9a26e049516629459b9c78364a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#ifndef PYSIDEINIT_H
#define PYSIDEINIT_H

#include <sbkpython.h>

#include <pysidemacros.h>

namespace PySide
{

PYSIDE_API void init(PyObject *module);

/// Registers a dynamic "qt.conf" file with the Qt resource system.
///
/// This is used in a standalone build, to inform QLibraryInfo of the Qt prefix
/// (where Qt libraries are installed) so that plugins can be successfully loaded.
///
/// This is also used if PySide runs from inside a conda environment to solve
/// conflicts with the qt.conf installed by Anaconda Qt packages.
PYSIDE_API bool registerInternalQtConf();

} //namespace PySide

#endif // PYSIDEINIT_H