Reusable Telegram-style chat widget with streaming support and interactive bubbles. More...
| Header: | #include <ChatStreamWidget> |
| Since: | 1.0 |
| Inherits: | QWidget |
| float | leftAlignThreshold() const |
| int | maxBubbleWidth() const |
| float | maxBubbleWidthPct() const |
| void | setLeftAlignThreshold(float threshold) |
| void | setMaxBubbleWidth(int width) |
| void | setMaxBubbleWidthPct(float pct) |
Wraps a QListView with a ChatMessageModel and ChatBubbleDelegate, adding a streaming bubble (outside the model for zero-churn token appending), a typing indicator, auto-scroll, viewport-aware persistent editor lifecycle, and a right-click context menu.
Layout is controlled by three Q_PROPERTYs: maxBubbleWidth, maxBubbleWidthPct, and leftAlignThreshold.
See also ChatMessageModel, ChatBubbleDelegate, and OpalChatOverlay.