diff --git a/sdk/openbr_plugin.cpp b/sdk/openbr_plugin.cpp index a2b6895..ddf61d7 100644 --- a/sdk/openbr_plugin.cpp +++ b/sdk/openbr_plugin.cpp @@ -647,7 +647,9 @@ int br::Context::blocks(int size) const bool br::Context::contains(const QString &name) { - const char *c_name = qPrintable(name); + QByteArray bytes = name.toLocal8Bit + const char * c_name = bytes.constData(); + for (int i=0; ipropertyCount(); i++) if (!strcmp(c_name, metaObject()->property(i).name())) return true;