Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doccumentation issue #24

Open
folibis opened this issue Jan 26, 2017 · 3 comments
Open

Doccumentation issue #24

folibis opened this issue Jan 26, 2017 · 3 comments

Comments

@folibis
Copy link

folibis commented Jan 26, 2017

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.

@lexxmark
Copy link
Collaborator

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
Copy link
Collaborator

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

@githubuser0xFFFF
Copy link

The project definitely lacks documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants