Hi List

I am contributing a sidebar widget, and I have no need of multiple instances
(there is no use case for showing my sidebar twice).
Currently I am doing the following: creating my widget in the
INavigationWidgetFactory,
in the create widget instantiating my sidebar widget, creating my model and
storing the model in the treeView (my main UI component).

Now when the user splits the sidebar and selects my sidebar, it will create
a new widget instance with a new model (which is not what I would want). I
am failing to see a way to either disable my sidebar for sidebar splits if
it's shown already (don't even know if that's possible).
I tried creating a new NavigationView, but adding the same widget instance
to it, but that messes up the UI.

So all I can think of now is that I need to duplicate all Ui widgets, and
share the model between them (and all events, so wherever a change is
triggered, all instances need to be updated).
Is that the correct approach, or are there other solutions to this problem?

Thanks for your help
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