0 Star 0 Fork 2

refinedyjm/Qt 2048

forked from oisc/Qt 2048 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mask.cpp 663 Bytes
一键复制 编辑 原始数据 按行查看 历史
oisc 提交于 2014-06-05 12:42 . Game 2048 目前没有Issue
#include "mask.h"
Mask::Mask(QWidget *parent) :
QWidget(parent)
{
this->setStyleSheet("background-color : rgba(238, 228, 218, 0.73)");
info = new QLabel(this);
info->setFont(QFont("黑体",30));
info->setGeometry(20,100,320,100);
info->setStyleSheet("background-color : rgba(0,0,0,0);"
"color : #776e65;"
"margin: 0 auto;");
this->hide();
}
void Mask::setMessage(QString s){
info->setText(s);
this->show();
}
void Mask::paintEvent(QPaintEvent *){
QStyleOption opt;
opt.init(this);
QPainter p(this);
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/refinedyjm/Qt-2048.git
git@gitee.com:refinedyjm/Qt-2048.git
refinedyjm
Qt-2048
Qt 2048
master

搜索帮助