[Qt-creator] Core::EditorManagerPlaceHolder::current() method replacement in Qt Creator 3.0

Xiaofeng Wu djangowu at gmail.com
Wed Feb 19 15:53:00 CET 2014


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

[image: Inline image 1]

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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20140219/fdee1069/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.png
Type: image/png
Size: 314572 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20140219/fdee1069/attachment.png>


More information about the Qt-creator mailing list