[Qt-interest] properties order in Qt designer plugins
Andreas Pakulat
apaku at gmx.de
Tue Aug 11 13:54:05 CEST 2009
On 11.08.09 13:35:20, Giacomo wrote:
> Hi to all.
>
> In my designer widget plugin I have some Q_PROPERTies to personalize.
>
> I would like to know if there is a way to define an order in which those
> properties have to be executed.
>
> For esample, supposing that the widget plugin has two Q_PROPERTies:
>
> Q_PROPERTY(a, READ a WRITE setA,,)
>
> Q_PROPERTY(b, READ b WRITE setB,,)
>
>
> I need that setA() is called _before_ setB() in the (uic) generated code.
This doesn't make any sense. If setB needs setA as requirement then it
should take the same parameters as setA additionally to its own and then
call setA itself. Either that or your widget should work even if setA
hasn't been called yet.
Andreas
--
You have a deep appreciation of the arts and music.
More information about the Qt-interest-old
mailing list