QtnProperty icon indicating copy to clipboard operation
QtnProperty copied to clipboard

Doccumentation issue

Open folibis opened this issue 8 years ago • 3 comments

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.

folibis avatar Jan 26 '17 19:01 folibis

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

lexxmark avatar Jan 27 '17 05:01 lexxmark

Did you solve your problem? If you still facing issues while integrating QtnProperty library please let me know.

lexxmark avatar Feb 12 '17 08:02 lexxmark

The project definitely lacks documentation

githubuser0xFFFF avatar Jun 07 '22 14:06 githubuser0xFFFF