Skip to content

Commit de8c8f3

Browse files
committed
Update README.md
1 parent f54ab37 commit de8c8f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@ How to Use?
1919
3) Your class's default constructor shuold be marked with Q_INVOKABLE
2020

2121
4) Add properties to your class using the 3 macros -- MetaPropertyPublicSet, MetaPropertyPublicSet_Ptr, MetaPropertyPublicSet_Ptr_List -- this way you will see getter/setter with the same name as your property name you said in the MetaPropertyPublicSet* macro.
22+
2223
i) Use MetaPropertyPublicSet to declare properites of built-in types (QString, int and such, that is, all the types in QMetaType::Type enum)
24+
2325
ii) Use MetaPropertyPublicSet_Ptr to declare property of your other JObject base custom types.
26+
2427
iii) Use MetaPropertyPublicSet_Ptr_List to declare property of list type of your other JObject base custom types. You will see a append<PropertyName> method in the class to append an item in the list of that particular type.
28+
29+
2530
See the test project in test directory for a bit more details.
2631

2732

0 commit comments

Comments
 (0)