[Ctk-developers] ctkWorkflowWidgetStep API

Julien Finet julien.finet at kitware.com
Fri Nov 25 14:17:58 UTC 2011


Hi Miklos,

Can you suggest a patch ?
We can review and merge it.

Regards,
Julien.

On Wed, Nov 23, 2011 at 8:35 AM, Miklos Espak <espakm at gmail.com> wrote:
> Hi,
>
> I created a few widget steps. I noticed that the user interface is
> created lazily, at the first time it is needed, after the first
> onEntry call.
>
> For this reason I have to check in the onEntry function if the user
> interface has been created, so I can update the GUI.
>
> I have not found a nice way to do this.
>
> There is a "createUserInterfaceComplete" function that "signals" if
> the UI has been created. This is not a Qt signal, however, so you
> cannot connect it to a slot.
>
> It is not virtual either, so you cannot override it safely.
>
> The only reasonable way I found was to create a
> createUserInterfaceComplete2 function in the common superclass of my
> widget steps, that calls createUserInterfaceComplete *and* sets a
> flag.
>
> Would it be possible to make one of these changes?
>  - introduce an isUserInterfaceComplete() function or such
>  - make createUserInterfaceComplete virtual
>  - make createUserInterfaceComplete a Qt signal, so one can be
> notified if the UI is created
>  - create the GUI before the first onEntry call
>
> Thanks,
> Miklos
> _______________________________________________
> Ctk-developers mailing list
> Ctk-developers at commontk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers
>



More information about the Ctk-developers mailing list