QBadgeWidget (removed)
Removed in v3
QBadgeWidget has been removed and replaced by
QCustomBadge — a themed badge whose colour comes from
a semantic variant (so it follows the light/dark theme), with new count and
dot modes and an overlay helper. There is no import alias.
Update your imports and API:
# old (removed)
from Custom_Widgets.QBadgeWidget import QBadgeWidget
badge = QBadgeWidget(text="Error", background_color=QColor(231, 76, 60))
# new
from Custom_Widgets.QCustomBadge import QCustomBadge
badge = QCustomBadge("Error", variant="destructive")
See the v3 migration note
for the full property/API map, and the
QCustomBadge reference for the new widget.