[Qt-creator] What are advantages to have Core plugin over MainWindow?!?

Eike Ziller Eike.Ziller at qt.io
Wed Aug 15 10:43:01 CEST 2018



> On 14. Aug 2018, at 21:40, Szyk Cech <szykcech at spoko.pl> wrote:
> 
> Hi
> I just read some docs "Extending Qt Creator Manual" and study qt-creator/src/app/main.cpp file. And I have question (maybe not very wise but important to me):
> 
> What are advantages to have Core plugin over MainWindow?!?
> 
> I mean MainWindow class which handle whole app skeleton (located in main app exe module).
> 
> One reason for core plugin, from my point of view is that core plugin is shared object which can easily share its methods to other plugins - I think it is possible for exe (app exe module), but counter intuitive and cumbersome, and platform specific.
> 
> There are some more reasons for create Core plugin?

Handling it as just another plugin has the advantage that it uses the exact same startup, shutdown, building, linking, .... semantics as anything else. No need to invent something else :)

-- 
Eike Ziller
Principal Software Engineer

The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin
eike.ziller at qt.io
http://qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B



More information about the Qt-creator mailing list