Hi, I only want the tabs to show up in the main window, so what you said is not a problem to me.
I understand that I can "take EditorManager::instance(), install yourself as an event filter" so that if the instance()'s parent changes, my code will know that. But, when it happens, what is the code look like if I want to add a QTabWidget on top of the editor panel? On Wed, Feb 19, 2014 at 10:22 AM, Ziller Eike <[email protected]> wrote: > Hi, > > I suppose you could take EditorManager::instance(), install yourself as an > event filter, and do whatever magic on ParentChange events. > > Note that both your old method, and anything based on the parent of > EditorManager::instance(), does not work with additional editor windows > (Window > Open in New Window). > > Br, Eike > > On Feb 19, 2014, at 3:25 PM, Xiaofeng Wu <[email protected]> wrote: > > > I am developing a Qt Creator plugin. This plugin shows currently opened > files as a QTabWidget on top of the editor pane. In Qt Creator 2.8, the > code works like the following, > > Core::EditorManagerPlaceHolder* holder = > Core::EditorManagerPlaceHolder::current(); > > holder->layout()->addWidget(myTabWidget); > > > > Here is the screen shot for the plugin running in Qt Creator 2.8 > > > > <1.png> > > > > However, in Qt Creator 3.0, the method > Core::EditorManagerPlaceHolder::current() no longer exists. In this > situation how am I able to put the QTabWidget on the top the editor window > > _______________________________________________ > > Qt-creator mailing list > > [email protected] > > http://lists.qt-project.org/mailman/listinfo/qt-creator > > -- > Eike Ziller, Senior Software Engineer - Digia, Qt > > Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin > Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja > Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht > Charlottenburg, HRB 144331 B > >
_______________________________________________ Qt-creator mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qt-creator
