使用Qt开发移动端Toast提示消息
发布时间
阅读量:
阅读量
以下为具体实施后的效果展示图:

弹出提示信息之后,该提示窗口会在设定的时间段内自动关闭。
程序
程序头文件声明:
/** @file Toast.h
* @brief Qt模拟安卓移动客户端Toast提示消息
* @note qss set in ui file
* @author lesliefish
* @date 2019/05/31
*/
#pragma once
#include <QtWidgets/QWidget>
#include "ui_Toast.h"
class Toast : public QWidget
{
Q_OBJECT
public:
Toast(QWidget *parent = Q_NULLPTR);
~Toast();
void setText(const QString& text);
void
全部评论 (0)
还没有任何评论哟~
