Add Q_DECLARE_METATYPE(Post*) to the example (#60)
This commit is contained in:
parent
546b7ae53c
commit
e062b49830
|
|
@ -50,6 +50,9 @@ public:
|
||||||
explicit Post(QObject *tableSet = 0);
|
explicit Post(QObject *tableSet = 0);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Q_DECLARE_METATYPE(Post*)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Declare child table
|
## Declare child table
|
||||||
|
|
@ -67,4 +70,4 @@ Post::Post(QObject *parent) : Table(parent),
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
For more example take a look at _tests/common_ folder
|
For more example take a look at _tests/common_ folder
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue