Q_PROPERTY for a class inheriting QValidator[solved]
-
Hi,
after I added Q_PROPERTY(QString what READ get_what) to a class which inherits QValidator class and extracted the property, the empty string is returned (invoking the property I saw that the extraData is empty).
Why is it so? -
Hi,
You need to share your code, without that there's only crystal ball debugging which is not necessarily efficient.
-
I needed to add Q_OBJECT and start qmake and then start, so it worked.
-
Good you found out !
Don't forget to update the thread title prepending [solved] so other forum users may know a solution has been found :)