Skip to main content

QCustomWallpaper

QCustomWallpaper

A full-bleed backdrop image widget.

The photo layer glass UIs sample: give it an imageSource (local path or http(s) URL - downloaded + cached async via Custom_Widgets.ImageLoader) and it paints the image COVER-FIT (fills, centre-cropped - never distorted like a scaledContents QLabel). Until the image arrives (or offline) it paints a three-stop diagonal gradient from fallbackTop/Mid/Bottom - qproperties, so the fallback THEMES from QSS. Glass frames watching it via backdropSource re-sample automatically when the photo lands.

At a glance

TierFree (GPLv3)
Importfrom Custom_Widgets.QCustomWallpaper import QCustomWallpaper
Qt DesignerYes — drag it from the palette

Quick start

from Custom_Widgets.QCustomWallpaper import QCustomWallpaper

widget = QCustomWallpaper()

Dark theme

Colours come from the design tokens, so the widget follows the app theme with no extra work.

QCustomWallpaper in dark theme

Properties

Every property below is settable in code and in Qt Designer.

PropertyTypeDefault
imageSourcestring
fallbackTopcolor#2b3550
fallbackMidcolor#4c4668
fallbackBottomcolor#1a1e30

Signals

Signal
imageLoaded()

Methods

MethodDescription
fallbackBottom(*args, **kwargs)Fallback bottom.
fallbackMid(*args, **kwargs)Fallback mid.
fallbackTop(*args, **kwargs)Fallback top.
imageLoaded(...)Image loaded.
imageSource(*args, **kwargs)Image source.
pixmap()Pixmap.
setImageSource(source)Set the image source.

QCustomCoverFlow · QCustomImageViewer · QCustomMediaGrid · QCustomMediaTimeline · QCustomPlayerBar · QCustomVideoPlayer · QCustomVoiceMessage