|
|
RZ wrote:
> i'm a little bit lost when creating plugins for QtDesigner with Qt4.
> So far i have achieved that my plugins get loaded and can be used in
> Designer.
>
> The problem i got is that in Qt3
>
> Q_PROPERTY( QPixmap upPixmap READ getUpPixmap WRITE setUpPixmap )
>
> automagically extended the property editor.
OK. This should also work in Qt 4.
> Porting the Qt3 and using the same (or at least corresponding) code
> resulted in a working plugin but the properties don't appear in the
> property editor. And honestly i'm a bit lost in the various
> QDesigner*Extension/Interface classes - not sure if i even need them.
You don't have to worry about those to get properties to work.
> Has someone got an (understandable) example or could point me in the
> right direction?
First of all, can you tell us which platform you're using and the version of
Qt you're using on that platform?
In the meantime, you may want to create an integer property for your custom
widget, to see if that works. It might be useful information when debugging
your problem with the QPixmap property.
--
David Boddie
Technical Writer, Trolltech ASA
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
|
|