QVariant types support for custom properties
Hi there,
I'm writing a custom plugin for the designer and I need QList properties, but at the moment not all the QVariant type are handled in QAbstractFormBuilder::createProperty (tools/designer/src/lib/uilib/abstractformbuilder.cpp:1247): when can we expect a full implementation of QVariant types? maybe in Qt 4.1.1?
Re: QVariant types support for custom properties
What exactly do you want to do? Can you give us an example of one of the properties you plan?
Re: QVariant types support for custom properties
Quote:
Originally Posted by axeljaeger
What exactly do you want to do? Can you give us an example of one of the properties you plan?
I have to store a variable number of QColor and QString values, so I defined the properties as QVariant, and internally represent them as QList<QVariant>, but when the designer is going to save them it says that writing properties of type QVariant::List is not implemented yet (from within the method I mentioned in the first post)
Re: QVariant types support for custom properties
I think this is not (yet) possible with Designer.
Re: QVariant types support for custom properties
Quote:
Originally Posted by axeljaeger
I think this is not (yet) possible with Designer.
I know that it's not possible, I was wondering when it will be. I wrote my own configuration window for my widget and I would like to save QList properties in the ui file, but Designer says that QList are not implemented yet.
Re: QVariant types support for custom properties
Do you have to implement that through properties?
Re: QVariant types support for custom properties
Quote:
Originally Posted by wysota
Do you have to implement that through properties?
Yes, because I want to store them in the ui
Re: QVariant types support for custom properties
I'm not familiar with Designer 4 mechanisms regarding setting custom ways of defining properties, but with Designer 3 one could for example edit QListView columns using a built-in editor and this information was saved in the ui too. Can't you do it this way? Or does it involve using these listed properties too?
Re: QVariant types support for custom properties
Quote:
Originally Posted by wysota
I'm not familiar with Designer 4 mechanisms regarding setting custom ways of defining properties, but with Designer 3 one could for example edit QListView columns using a built-in editor and this information was saved in the ui too. Can't you do it this way? Or does it involve using these listed properties too?
I don't know how the designer saves the data in this case, if I had some time I'd take a look at the code (since the documentation isn't helping me)
Re: QVariant types support for custom properties
for the moment I solved the problem joining data in a QString, but I think this feature should definitely be implemented.