[Qt-creator] connect to qmljsmodelmanagerinterface
Orgad Shaneh
orgads at gmail.com
Sun May 31 14:08:33 CEST 2015
On Sun, May 31, 2015 at 3:05 PM, Van Looy Detlev <
detlev.vanlooy at student.uantwerpen.be> wrote:
> Hello,
>
> In a plugin I am making I have to keep track of whenever a user saves a
> .qml file. After some looking I think I need to connect to
> qmljs/qmljsmodelmanagerinterface's signal:
> "documentChangedOnDisk(QmlJS::Document::Ptr)", using
> ModelManagerInterface::instance().
>
> The problem is that when I do this in the "initialize" of my plugin, that
> instance() returns null. So my question is, when can I be sure that the
> modelmanagerinterface has been set up and that instance() will not return
> null? Should I do it in the "extensionsInitialized" of my plugin instead?
>
extensionsInitialized().
- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20150531/c81cac98/attachment.html>
More information about the Qt-creator
mailing list