Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

12.5. Dynamic Properties

It is possible to load and store properties in a QObject without having to define them on the class with Q_PROPERTY.

Up to this point, we have been dealing exclusively with properties that are defined with the Q_PROPERTY macro. These properties are known to the QMetaObject of that class and have a QMetaProperty defined. All objects of the same class share the same metaObject and thus have the same set of meta properties.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial