QtnProperty
QtnProperty copied to clipboard
Doccumentation issue
this code:
QtnPropertySet* set = new QtnPropertySet(this);
ui->propertyWidget->setPropertySet(set);
QtnPropertyQColor* textColor = new QtnPropertyQColor(set);
textColor->setName(tr("textColor"));
textColor->setDescription(tr("Foreground text color"));
textColor->setValue(QColor(0, 0, 0));
produces following:
textColor Delegate <> unknown;
I've spent an hour and still can't find how to attach a delegate. Anyway, the project really misses documentation.
Yes, I agree the project lacks of documentation. I will try to write something useful soon.
I your case I think the most probable reason of failure is missing the following call: initQtnPropertyWidgetLibrary();
You can find this code in the end of PropertyDelegateFactory.cpp
This function registers all standard delegates. And default delegate for QtnPropertyQColor as well.
I'm really sorry for documentation and I'll try fix it ASAP.
You can write other issues in this thread and I'll add such topics in documentation.
Regards, Alex
Did you solve your problem? If you still facing issues while integrating QtnProperty library please let me know.
The project definitely lacks documentation