Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Q_Property add range macros
Vitaliy last edited by
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?
AFAIK, there's none. You need to implement your own macro on top Q_PROPERTY to do that.