Skip to content

Commit f54ab37

Browse files
committed
Readme file updated
1 parent 3d94af1 commit f54ab37

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ Only to Qt5
1313
How to Use?
1414
======
1515
1) Include the QtJson.pri file into your pro file
16+
1617
2) Create your class inhering the JObject class
18+
1719
3) Your class's default constructor shuold be marked with Q_INVOKABLE
20+
1821
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.
1922
i) Use MetaPropertyPublicSet to declare properites of built-in types (QString, int and such, that is, all the types in QMetaType::Type enum)
2023
ii) Use MetaPropertyPublicSet_Ptr to declare property of your other JObject base custom types.

0 commit comments

Comments
 (0)