pysideqmlattached.h 819 B

12345678910111213141516171819202122232425262728
  1. // Copyright (C) 2022 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 PYSIDEQMLATTACHED_H
  4. #define PYSIDEQMLATTACHED_H
  5. #include <sbkpython.h>
  6. #include "pysideqmlmacros.h"
  7. #include <QtCore/qtconfigmacros.h>
  8. QT_FORWARD_DECLARE_CLASS(QObject)
  9. namespace PySide::Qml
  10. {
  11. /// PySide implementation of qmlAttachedPropertiesObject<T> function.
  12. /// \param typeObject attaching type
  13. /// \param obj attachee
  14. /// \param create Whether to create the Attachment object
  15. /// \return Attachment object instance
  16. PYSIDEQML_API QObject *qmlAttachedPropertiesObject(PyObject *typeObject, QObject *obj,
  17. bool create = true);
  18. } // namespace PySide::Qml
  19. #endif // PYSIDEQMLATTACHED_H