CCIMXDesktop
 
Loading...
Searching...
No Matches
WeatherCard Class Reference

A custom QWidget that displays current weather information. More...

#include <WeatherCard.h>

Inheritance diagram for WeatherCard:

Public Member Functions

 WeatherCard (QWidget *parent=nullptr)
 Constructs a WeatherCard object.
 
 ~WeatherCard ()
 Destroys the WeatherCard object.
 

Detailed Description

A custom QWidget that displays current weather information.

This widget is designed to present weather data in a compact "card" format. It receives WeatherData objects and updates its UI to reflect the current weather conditions. It typically relies on a WeatherRequestEngine to fetch the actual weather data.

Constructor & Destructor Documentation

◆ WeatherCard()

WeatherCard::WeatherCard ( QWidget *  parent = nullptr)
explicit

Constructs a WeatherCard object.

Parameters
parentA pointer to the parent widget, if any. Defaults to nullptr.

◆ ~WeatherCard()

WeatherCard::~WeatherCard ( )

Destroys the WeatherCard object.

  • This destructor is responsible for cleaning up resources, particularly the dynamically allocated UI object and the WeatherRequestEngine.

The documentation for this class was generated from the following files: