IRBCAM plugins
Developer reference for IRBCAM plugins
|
In IRBCAM, plugins are implemented as QML (Qt Modeling Language) files. These QML plugins enhance the functionality of the application by providing additional user interfaces, features, or integrations. To ensure a consistent and flexible user experience, plugins are loaded within popups. This document outlines the fundamental structure of a QML-based plugin, emphasizing the importance of a responsive layout that adapts to the content size.
A QML-based plugin in IRBCAM is a QML file that encapsulates the user interface and functionality of the plugin. This file can include various QML components, such as text elements, buttons, images, custom controls, functions and variables, depending on the plugin's purpose.
One of the key features of plugins in IRBCAM is the ability to dynamically load them as needed. This dynamic loading allows the application to keep the core runtime lightweight while allowing users to extend functionality through plugins. When a user opens a plugin, the associated QML file is loaded on-demand, providing a seamless and responsive user experience.
To ensure a consistent and user-friendly experience, plugins are wrapped within a single QML component, preferably within a component from the Layout Module. The use of a Layout is makes it easier to create responsive and adaptable popups that scale to the content size of the plugin.
The use of a Layout in your QML-based plugins is recommended for several reasons:
To create a responsive layout for your plugin, follow these steps:
Wrap Your Plugin Content: Wrap the content of your plugin within a Layout as the root item.
When creating QML-based plugins for IRBCAM, consider the following best practices:
By following these best practices and creating plugins with responsive layouts, you can provide a solid user experience and allow your plugins to seamlessly integrate into IRBCAM.