A plugin factory class for creating WeatherCard instances. More...
#include <WeatherCard.h>
Public Member Functions | |
| QWidget * | factorize_widget (QWidget *parent=nullptr) override |
| Qt plugin metadata macro. | |
A plugin factory class for creating WeatherCard instances.
This class serves as the entry point for dynamically loading WeatherCard as a plugin within a Qt application. It implements the DesktopPluginWidgetBase interface, allowing it to be discovered and instantiated by a plugin server.
|
inlineoverridevirtual |
Qt plugin metadata macro.
Declares that this class implements the DesktopPluginWidgetBase interface. This is crucial for Qt's plugin system to correctly identify and use this class.
Factory method to create and return a new instance of WeatherCard.
DesktopPluginWidgetBase interface. When the plugin is loaded, this method is called to create the actual widget that will be displayed. | parent | A pointer to the parent widget for the new WeatherCard instance. Defaults to nullptr. |
WeatherCard widget. Ownership is transferred to the caller. Implements DesktopPluginWidgetBase.