- qtgui
- qtdbus
- qtwidgets
- qtcore
- dtkcore
- qsettingbackend_zh
- dobject_zh
- abstractappender_zh
- abstractstringappender_zh
- dfilewatcher_zh
- outputdebugappender_zh
- dsettingsbackend_zh
- drecentmanager_zh
- ddesktopentry_zh
- consoleappender_zh
- gsettingsbackend_zh
- dsettingsgroup_zh
- dlogmanager_zh
- fileappender_zh
- dsettings_zh
- dfilesystemwatcher_zh
- dfilewatchermanager_zh
- dbasefilewatcher_zh
- dtkgui
- dtkwidget
- dviewitemaction_zh
- dstandarditem_zh
- dfiledialog_zh
- dclipeffectwidget_zh
- danchors_zh
- dgraphicsclipeffect_zh
- dstyle_zh
- dcoloredprogressbar_zh
- dbuttonboxbutton_zh
- dlabel_zh
- dtiplabel_zh
- darrowlinedrawer_zh
- daboutdialog_zh
- dsettingswidgetfactory_zh
- dsearchcombobox_zh
- dcrumbedit_zh
- dcommandlinkbutton_zh
- dsettingsdialog_zh
- dwindowoptionbutton_zh
- dspinner_zh
- dsimplelistview_zh
- dwaterprogress_zh
- dmainwindow_zh
- dhidpihelper_zh
- dslider_zh
- dpasswordedit_zh
- danchorinfo_zh
- dmpriscontrol_zh
- darrowbutton_zh
- dbackgroundgroup_zh
- dcircleprogress_zh
- dwarningbutton_zh
- dwindowclosebutton_zh
- dvideowidget_zh
- dfilechooseredit_zh
- dblureffectwidget_zh
- darrowrectangle_zh
- dsearchedit_zh
- dfloatingmessage_zh
- dswitchlineexpand_zh
- dtabbar_zh
- dlineedit_zh
- danchorsbase_zh
- dstylediconengine_zh
- dwindowmaxbutton_zh
- dpageindicator_zh
- dsuggestbutton_zh
- dapplicationsettings_zh
- dtooltip_zh
- dwindowminbutton_zh
- ddrawer_zh
- dtitlebar_zh
- dsimplelistitem_zh
- dpicturesequenceview_zh
dfloatingmessage_zh
Class::DFloatingMessage
暂无该属性
Detailed Description
是一个浮动消息的类, 类似于 ios 的通知栏消息, 然后有每一个新的消息对象, 就添加到一个竖直布局里面, 然后一个消息的其布局模式是: icon (图标) + Message (消息) + QWidget (存放如控件按钮,可选) + closeButton (关闭按钮,可选) 多个消息均是以竖直布局存放在一个 DMessageManager (消息管理类) 里面的 UnknownCommand
============================================================================================= = = = ========== ======================= ========= ========== = = = icon = = message = =QWidget= = quit = = = ========== ======================= ========= ========== = = (必选) (必选) (永驻:可选) (永驻:可选) = =============================================================================================UnknownCommand 消息通知一共有两种类型,临时停留几秒和手动清除的永驻消息
DFloatingMessage::D_DECLARE_PRIVATE
int D_DECLARE_PRIVATE(DFloatingMessage )
DFloatingMessage::DFloatingMessage
DFloatingMessage(int notifyType, int *parent)
DFloatingMessage::messageType
int messageType() const
DFloatingMessage::setIcon
void setIcon(const int &ico)
设置控件图标 icon ico 是最终的效果图标
DFloatingMessage::setMessage
void setMessage(const QString &str)
设置显示的文本消息(文字) str 消息文本的具体文字内容
DFloatingMessage::setWidget
void setWidget(int *w)
消息里面的,水平布局里面的第三个位置, 用来存放一些自定义控件, 比如一个确定按钮 w 插入的具体控件, 若之前此处已经有其他的控件, 先删除挪出空位子, 在将 w 控件放到这个上面
DFloatingMessage::setDuration
void setDuration(int msec)
若是为临时消息,则设置时间(毫秒)后会自动消失 msec 消息显示的毫秒数, 默认是4000毫秒
DFloatingMessage::sizeHint
int sizeHint() const
DFloatingMessage::showEvent
void showEvent(int *event) override
显示事件,里面设置计时器开始工作 event 系统传过来的显示消息事件,没有感兴趣的消息需要处理,直接所有事件继续传递给下一个对象