Q_Property add range macros
Unsolved
Language Bindings
-
Hello!. I want to add a range to the property. Something like ... this:
Q_PROPERTY(int count READ count WRITE setCount NOTIFY countChanged MIN 0 MAX 100)
Who can tell where to look or examples of the implementation of such?
-
Hi,
AFAIK, there's none. You need to implement your own macro on top Q_PROPERTY to do that.
2/2