Abstract base class for constructing Python to Qt data converters. More...
#include <PyObjectToQVariant.h>
Public Member Functions | |
PyObjectToQVariant (bool fo) | |
bool | ForeignOwned () const |
Return ownership. | |
virtual QVariant | Create (PyObject *) const =0 |
Create QVariant from PyObject. | |
virtual | ~PyObjectToQVariant () |
Virtual destructor. |
Abstract base class for constructing Python to Qt data converters.
Client code is required to specify if instances are owned by the client code itself or if ownership is to be transferred to the QPy run-time.
qpy::PyObjectToQVariant::PyObjectToQVariant | ( | bool | fo | ) | [inline] |
Constructor
fo | Set to true if foreign owned, i.e. if it is destroyed by client code |