cut 3.4.1-rc1
Loading...
Searching...
No Matches
qebanner.QeNotificationMessage Class Reference

Widget that represents a single notification message (Info or Error). More...

Public Member Functions

 __init__ (self, message, NotificationType type, timeout=None, parent=None)
 Initialize a notification message widget.
 
 on_closeButton_clicked (self)
 Handle the close button click.
 
 vanish (self)
 Close the notification and emit the notificationRemoved signal.
 
 closeEvent (self, event)
 Handle the widget close event, scheduling the widget for deletion.
 

Detailed Description

Widget that represents a single notification message (Info or Error).

Info notifications auto-disappear after a configurable timeout (default 15 seconds). Error notifications must be closed explicitly by the user.

Constructor & Destructor Documentation

◆ __init__()

qebanner.QeNotificationMessage.__init__ ( self,
message,
NotificationType type,
timeout = None,
parent = None )

Initialize a notification message widget.

Parameters
messageThe text message to display.
typeThe notification type (NotificationType.INFO or NotificationType.ERROR).
timeoutTimeout in milliseconds before auto-closing (for Info notifications). Defaults to 15000.
parentThe parent widget.

Member Function Documentation

◆ on_closeButton_clicked()

qebanner.QeNotificationMessage.on_closeButton_clicked ( self)

Handle the close button click.

Stops the auto-close timer, closes the widget, and emits the notificationRemoved signal. This slot is auto-connected via ui.setupUi.

◆ vanish()

qebanner.QeNotificationMessage.vanish ( self)

Close the notification and emit the notificationRemoved signal.

Called automatically when the timeout elapses for Info notifications.


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