pysideinit.h 771 B

123456789101112131415161718192021222324252627
  1. // Copyright (C) 2021 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
  3. #ifndef PYSIDEINIT_H
  4. #define PYSIDEINIT_H
  5. #include <sbkpython.h>
  6. #include <pysidemacros.h>
  7. namespace PySide
  8. {
  9. PYSIDE_API void init(PyObject *module);
  10. /// Registers a dynamic "qt.conf" file with the Qt resource system.
  11. ///
  12. /// This is used in a standalone build, to inform QLibraryInfo of the Qt prefix
  13. /// (where Qt libraries are installed) so that plugins can be successfully loaded.
  14. ///
  15. /// This is also used if PySide runs from inside a conda environment to solve
  16. /// conflicts with the qt.conf installed by Anaconda Qt packages.
  17. PYSIDE_API bool registerInternalQtConf();
  18. } //namespace PySide
  19. #endif // PYSIDEINIT_H