5#ifndef QXTOASTMANAGER_H
6#define QXTOASTMANAGER_H
11#include <QtCore/QList>
12#include <QtCore/QObject>
20class QxToastManagerPrivate;
62 static constexpr
int DefaultTimeout =
QxToast::DefaultTimeout;
67 QWidget *host() const;
70 int maxVisible() const;
71 void setMaxVisible(
int count);
78 void setMargin(
int pixels);
81 void setSpacing(
int pixels);
84 void setMaxWidth(
int pixels);
86 int fadeDuration() const;
87 void setFadeDuration(
int ms);
91 QList<
QxToast *> toasts() const;
93 QxToast *toastAt(
int index) const;
94 bool contains(
QxToast *toast) const;
102 int timeoutMs =
QxToast::DefaultTimeout);
112 bool eventFilter(QObject *watched, QEvent *event) override;
The stack of toasts of one window.
Position
The corner of the host the stack is anchored to.
One short message, shown over the window it belongs to and gone a few seconds later.
#define QX_APP_END_NAMESPACE
#define QX_DECLARE_PRIVATE(Class)
#define Q_NULLPTR
Copyleft (C) 2025 maminjie canpool@163.com SPDX-License-Identifier: MulanPSL-2.0
#define QX_APP_BEGIN_NAMESPACE