create plugin to add functionnality in QtDesign Studio
-
Hi,
I'm trying to follow the steps to add functionnalities to Qt Application.
i've followed this tutorial to create a plugin that show a message when clicking on the plugin menu.It does work very well in QtCreator but not in QtDesign studio. I got the following error:
qtc.extensionsystem.plugin: [ PluginTest ] Plugin error: Could not resolve dependency 'Core(14.0.2)'
Is it possible to create plugin for QtDesignStudio as for QtCreator?
The aim is to get a menu in QtDesign studio and when clicking on it, it shows a message (just like the QtCreator example).
thanks for your help
-
@skeud said in create plugin to add functionnality in QtDesign Studio:
Is it possible to create plugin for QtDesignStudio as for QtCreator?
QtCreator and Qt Design Studio are two completely different pieces of software.
I've never heard of creating custom plugins for Qt Design Studio as it is possible for QtCreator.AFAIK the Figma Bridge is a "plugin" integrated into QtDS... but I don't know if it's possible to load custom plugin just like that.
-
Qt Design Studio is a sibling of Qt Creator and can be built out of the qtcreator git repository, a full Qt Design Studio does some packaging magic - but that is not necessary for a plugin
We do not provide the dev components like Qt Creator - so you need to build it fully - to get the necessary dev files.
choose the correct branch -> qds/4.6 or even the tag qds/v4.6.2
you need to enable the Cmake variable BUILD_DESIGNSTUDIO=on
it sets some varialbes throw the file qtcreator\dist\branding\qtdesignstudio\QtCreatorIDEBranding.cmake
If you add your plugin to qtcreator cmake then you also need to add your plugin here (its only building relevant plugins instead of everything of QtCreator)
In the about dialog you see which version was used to compile it - at least the Qt version needs to fit if you want to deploy your plugin (if Microsoft keeps the binary compatility between 2019 and 2022 you can use MSVC2022 which we use aswell in our builds at the moment):
Qt Design Studio 4.6 (4.6.2)
Based on Qt 6.7.3 (MSVC 2019, x86_64) -
@Tim-Jenssen said in create plugin to add functionnality in QtDesign Studio:
Qt Design Studio is a sibling of Qt Creator
I wouldn't call QtDS a sibling of QtC, you can't replace one with the other for the same use case and while the latter is a complete IDE, QtDS is more focused on the designing part. So it's rather a more powerful QtDesigner with QML and additional design features.
And while it's more or less intended to extend QtCreator/QtDesigner through custom plugins, there's no entry in the documentation to do so for QtDS :/
-
As the responsible person for creating the Qt Desgin Studio packages my view comes from how it is built - not so much how it is used and yes documentation how it can be extend is missing, mostly because we had no requests in that direction until now.
-
Thanks, i did understand how it works and i manage to compile a plugin without getting source from QtDesignStudio.
I changed the versions number in C:\Qt\Tools\QtCreator\lib\cmake\QtCreator\QtCreatorIDEBranding.cmake to be the version of QtDesignerStudio and it works (Qt version for my plugin and Qt version of QtDesignStudio is the same).My plugin does compile and is loaded in QtDesignStudio and show a new menu :)
Thanks for the help
-