[SOLVED] Problems with setting properties in Qt 5.4
-
I have defined a property similar to this:
Q_PROPERTY(QList<QString> string_list READ stringList WRITE setStringList NOTIFY stringListChanged)
I want to use
bool QObject::setProperty(const char * name, const QVariant & value)
to set this property, but the function returns false ... with Qt 5.4.I have compiled the same program with Qt 5.5 and - voila - it works.
Any ideas if there was a bugfix (- haven't found anything in the sources) or why this happens?
-
Hi,
Didn't you have any error message at run time ?
-
Do you also have that failure if you use QStringList rather than QList<QString> ?
-
-
They are two different types so there might have been something going because of that