API 浏览器
横幅

QBanner 组件创建一个横幅元素,用于显示醒目的消息和相关的可选操作。

¥The QBanner component creates a banner element to display a prominent message and related optional actions.

根据 Material Design 规范,横幅广告应为 “显示在屏幕顶部,顶部应用栏下方” - 当然,你可以将翻译放在任何合适的地方,即使是在 QDialog 中。

¥According to the Material Design spec, the banner should be “displayed at the top of the screen, below a top app bar” - but of course you can put one anywhere that makes sense, even in a QDialog.

Loading QBanner API...

用法(Usage)

¥Usage

Basic



Rounded border



With an image



Inline actions



Dense