Hi

I have a plugin contributing a sidebar widget. It extends IPlugin, and in
the initialize method it calls
addAutoReleasedObject(new MyWidgetFactory);

So far so good. All works well.
But now I have an additional requirement that would make that contribution
only available if certain prerequisites are given. Simply put, I will have a
loop constantly checking whether a condition is true, and if finally yes,
the sidebar widget should get contributed.

Problem is, that when I call
addAutoReleasedObject(new MyWidgetFactory);
outside the initialize method scope, the sidebar does not show (the
"createWidget" of MyWidgetFactory never gets called).

Is there a way to do this?

Hope I made myself somewhat clear :)

Thanks
Thomas

-- 
Thomas Ehrnhoefer
Software Developer, http://tasktop.com
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator

Reply via email to