-
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
-
设置ie的标题。很好用的源代码。程序运行后,弹出对话框,显示当前计算机的ie标签,选中其中的一个,可以修改其标签。...
设置ie的标题。很好用的源代码。程序运行后,弹出对话框,显示当前计算机的ie标签,选中其中的一个,可以修改其标签。-Ie to set the title. Well with the source code. After the program is running, pop-up dialog box shows the current computer ie labels, select one of them, you can modify its label.
- 2023-03-04 20:20:04下载
- 积分:1
-
This a full featured inventry controll system project
This a full featured inventry controll system project
- 2022-07-21 12:20:40下载
- 积分:1
-
一个实际应用程序,具有界面显示和下位及通信及汉字显示等功能....
一个实际应用程序,具有界面显示和下位及通信及汉字显示等功能.-A practical application, with the interface display and the next bit and communications and display features such as Chinese characters.
- 2022-04-24 17:43:33下载
- 积分:1
-
布可球游戏
简单的游戏,所有的朋友不妨一试追捕所有112动物,才到达山顶_玩得开心啦。
- 2022-05-19 16:37:23下载
- 积分:1
-
更改图标
本源代码在Windows 98 下用 Visual C++ 6.0 编译通过!供初学者学习参考。
- 2022-03-28 19:57:04下载
- 积分:1
-
in a single text of the standard procedures of the production
在vc的单文本程序中标尺的制作-in a single text of the standard procedures of the production
- 2022-01-23 11:19:28下载
- 积分:1
-
一种使用C++ Builder编制而成的软件。界面很漂亮。也很实用。
一种使用C++ Builder编制而成的软件。界面很漂亮。也很实用。-use of a compiled C Builder software. Interface very pretty. Also practical.
- 2022-03-23 04:19:18下载
- 积分:1
-
背景为图形的进度条
背景为图形的进度条-the progress bar which using picture as background
- 2023-01-24 20:20:03下载
- 积分:1
-
一个测试程序编写的C++(菜单)功能添加问题,消除…
A quiz program written in C++ (with menu)...Features like add questions, remove questions included-A quiz program written in C++ (with menu)...Features like add questions, remove questions included...
- 2022-05-24 04:39:51下载
- 积分:1