Stay tuned on that :) On Mon, Apr 18, 2011 at 7:25 AM, <[email protected]> wrote:
> > On Apr 18, 2011, at 4:16 PM, ext Thomas Ehrnhoefer wrote: > > > Thanks Eike > > > > As for the "sidebar widget", that's what I, as a Qt Creator newbie, > called a NavigationView :) > > No, I meant what *your* sidebar widget / NavigationView / navigation pane > is about. > > Br, Eike > > > > > On Mon, Apr 18, 2011 at 12:32 AM, <[email protected]> wrote: > > Hi, > > > > On Apr 15, 2011, at 7:08 PM, ext Thomas Ehrnhoefer wrote: > > > > > 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). > > > > <curious>What is that?<curious/> > > > > > 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. > > > > Yeah, widgets can't appear at several places at once. > > > > > 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? > > > > Sounds correct. As it is now, navigation panes need to support > duplication, and, since you want the data only once, sharing the model for > the UI is the way to go. (That's how it's done for the other panes too.) > > > > -- > > Eike Ziller > > Software Engineer > > Nokia, Qt Development Frameworks > > > > Nokia gate5 GmbH > > Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany > > Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B > > Umsatzsteueridentifikationsnummer: DE 812 845 193 > > Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori > > > > > > > > _______________________________________________ > > Qt-creator mailing list > > [email protected] > > http://lists.qt.nokia.com/mailman/listinfo/qt-creator > > > > > > > > -- > > Thomas Ehrnhoefer > > Software Developer, http://tasktop.com > > <ATT00001..txt> > > -- > Eike Ziller > Software Engineer > Nokia, Qt Development Frameworks > > Nokia gate5 GmbH > Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany > Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B > Umsatzsteueridentifikationsnummer: DE 812 845 193 > Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori > > > > _______________________________________________ > Qt-creator mailing list > [email protected] > http://lists.qt.nokia.com/mailman/listinfo/qt-creator > -- Thomas Ehrnhoefer Software Developer, http://tasktop.com
_______________________________________________ Qt-creator mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-creator
