-
qt alarm实现闹钟
#include"alarm.h"
#include
Alarm::Alarm(QWidget * parent)
:QDialog(parent)
{
init();
layout();
con();
};
// ******
// 初始化
// ******
void Alarm::init()
{
setWindowTitle("Alarm clock"); //设置标题
setFixedSize(QSize(300,80)); //固定大小
timer=new QTimer; //控制lcd的时间刷新
uptimer=new QTimer; //控制对话框上升
dtimer=new QTimer; //控制对话框下降
itimer=new QTimer;
lcdNumber=new QLCDNumber; //显示当前时间
lcdNumber->setFixedSize(QSize(150,50)); //固定大小
lcdNumber->setNumDigits(8); //显示八个数字,默认是显示5个数字
lcdNumber->setSegmentStyle(QLCDNumber::Flat); //填充颜色,默认是白色的
lcdNumber->display(QTime::currentTime().toString("hh:mm:ss")); //设置格式,还有其他形式的
label=new QLabel(QString::fromLocal8Bit("闹钟")); //提示设置下个闹钟
- 2022-01-28 04:54:06下载
- 积分:1
-
基于udp的多播程序,先加入多播组,然后可以向多播组成员发送消息...
基于udp的多播程序,先加入多播组,然后可以向多播组成员发送消息-based udp multicast procedures to join the multicast group, and then to the multicast group members Send Message
- 2022-07-16 11:07:32下载
- 积分:1
-
使用ATL创建Com组件
使用ATL创建Com组件-use ATL create Com Component
- 2022-02-12 14:11:54下载
- 积分:1
-
照片设计
建设者3D阴影的身影在Delphi编写+ GLScene中+阿尔法控制与OPENGL。工程与模型格式.3DS。允许你建立阴影任何3D模型。支持多个光源(最多8个)
- 2023-05-12 21:30:04下载
- 积分:1
-
科学计算器
本代码详细描述了科学计算器的执行过程,带有足够大、可用手指来操作的按钮,数字大而清晰并能够满 足基本的计算,标准模式支持显示12位数字,算术操作、平方根、百分比、记忆功能。 科学型带有所有普通的函数,所有的函数都分布在键盘上以致于你可 以不用通过菜单列表来使用它们。
- 2023-07-07 14:30:03下载
- 积分:1
-
ASP website invasion tool ASP website invasion tool ASP website invasion Tools A...
ASP网站入侵工具 ASP网站入侵工具 ASP网站入侵工具 -ASP website invasion tool ASP website invasion tool ASP website invasion Tools ASP website invasion tool ASP website invasion tool ASP website invasion ASP network tools Point tools invasion invasion ASP website tools
- 2022-04-13 00:02:59下载
- 积分:1
-
法国INSIDE公司的读卡模块M210的数据手册,包含相关的通讯指令。...
法国INSIDE公司的读卡模块M210的数据手册,包含相关的通讯指令。-France INSIDE" s reader module M210 data sheet, including related communications directives.
- 2023-02-15 22:05:03下载
- 积分:1
-
控件,很好的
控件的使用方法
控件,很好的
控件的使用方法 -Control, good use of controls
- 2022-04-29 22:05:15下载
- 积分:1
-
content of this paper is on how to achieve MapX map yuan dragging the issue.
本文内容是关于mapx中如何实现图元的拖拽的问题。-content of this paper is on how to achieve MapX map yuan dragging the issue.
- 2023-01-31 21:30:04下载
- 积分:1
-
graphical programming interface, is a good graphical tools, support True Color
图形的界面编程,是一个不错的图形工具条,支持真彩色-graphical programming interface, is a good graphical tools, support True Color
- 2022-05-14 04:05:45下载
- 积分:1