Add Q_DECLARE_METATYPE(Post*) to the example (#60)

This commit is contained in:
Miklós Márton 2020-01-05 12:51:54 +01:00 committed by Hamed Masafi
parent 546b7ae53c
commit e062b49830
1 changed files with 4 additions and 1 deletions

View File

@ -50,6 +50,9 @@ public:
explicit Post(QObject *tableSet = 0);
};
Q_DECLARE_METATYPE(Post*)
```
## 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