Set the object meta object at the declaration time, not instanciation time.
This commit is contained in:
parent
35ab7bf679
commit
12bc3f5c12
4 changed files with 96 additions and 62 deletions
|
|
@ -30,7 +30,7 @@
|
|||
namespace PySide
|
||||
{
|
||||
|
||||
class PYSIDE_API DynamicQMetaObject : public QMetaObject
|
||||
class DynamicQMetaObject : public QMetaObject
|
||||
{
|
||||
public:
|
||||
DynamicQMetaObject(const char* className, const QMetaObject* metaObject);
|
||||
|
|
@ -44,9 +44,6 @@ public:
|
|||
void removeSlot(uint index);
|
||||
void removeProperty(uint index);
|
||||
|
||||
//Retrieve Python metadata to create QMetaObject (class name, signals, slot)
|
||||
static DynamicQMetaObject* createBasedOn(PyObject* obj, PyTypeObject* type, const QMetaObject* base);
|
||||
|
||||
private:
|
||||
class DynamicQMetaObjectPrivate;
|
||||
DynamicQMetaObjectPrivate* m_d;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue