[Qt-creator] Closing project plugins

Hugo Parente Lima hugo.pl at gmail.com
Tue May 6 13:00:23 CEST 2014


FYI: I just found that close project via project tree context menu is
also not working for CMake projects, tested on v3.1.0 tag.

Tested with a simple and small CMake project not using Qt.

On Wed, Apr 30, 2014 at 2:53 PM, Hugo Parente Lima <hugo.pl at gmail.com> wrote:
> On Wed, Apr 30, 2014 at 2:25 AM, preeteesh kakkar
> <preeteesh.kakkar at gmail.com> wrote:
>> I am not sure if this will work or not but try deleting m_watcher &
>> m_document in destructor
>
> Didn't solve the problem, but I noticed an interesting thing, the
> destructor isn't even called. It's only called when the project is
> closed by "Close all projects and editors".
>
>> On Tue, Apr 29, 2014 at 4:39 PM, Hugo Parente Lima <hugo.pl at gmail.com>
>> wrote:
>>>
>>> Hi,
>>>
>>> I did a small QtCreator plugin to handle projects written using my own
>>> build system, the plugin is the most simple project plugin that could
>>> exists, i.e. no build steps, no build configuration, nothing, just the
>>> project files indexed by the C++ code model.
>>>
>>> So, here is my problem:
>>>
>>> Having a project using my plugin opened into QtCreator if I choose
>>> "close all projects", everything goes as expected, but if I close the
>>> project using the context menu on the Project tree in the left pane,
>>> all editors are closed but the tree nodes remains there, I can even
>>> open the files by double clicking them.
>>>
>>> I may forgot something, but after a look into other project plugins I
>>> didn't found what's missing.
>>>
>>> The ProjectExplorer::Project derived class can be found here:
>>>
>>> https://github.com/Meique/MeiqueQtCreatorPlugin/blob/master/src/MeiqueProject.cpp
>>>
>>> Thanks in advance if someone have some ideia where's the problem.
>>>
>>> --
>>> Hugo Parente Lima
>>> "Precisamos de mais gênios modestos no mundo, hoje somos poucos!"
>>> _______________________________________________
>>> Qt-creator mailing list
>>> Qt-creator at qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/qt-creator
>>
>>
>
>
>
> --
> Hugo Parente Lima
> "Precisamos de mais gênios modestos no mundo, hoje somos poucos!"



-- 
Hugo Parente Lima
"Precisamos de mais gênios modestos no mundo, hoje somos poucos!"



More information about the Qt-creator mailing list