-
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
-
一个 XP 界面类库(更新)
一个 XP 界面类库(更新)-an XP interface class library (update)
- 2023-08-27 18:05:03下载
- 积分:1
-
超冷演示效果,非常逼真。
超COOL的显示效果,非常逼真。使用C++开发,适用于Linux,windows平台。- The ultra COOL demonstration effect, is extremely lifelike.
Uses the C development, is suitable to Linux, the windows platform.
- 2023-05-20 06:35:04下载
- 积分:1
-
a button type of skin
一个VC 的皮肤按钮类-a button type of skin
- 2022-10-25 16:55:03下载
- 积分:1
-
一个滑动条程序,包括滑动条的实现等。
一个滑动条程序,包括滑动条的实现等。-a sliding strip procedures, including sliding strip of realization.
- 2022-03-25 22:09:16下载
- 积分:1
-
soundplay.h
这个代码为soundplay.h,用于设计音乐盒时用到的头文件,有了这个头文件可以直接下载放到KEIL软件中,直接调用,不用再重复编写,方便快捷
- 2022-06-11 18:42:37下载
- 积分:1
-
一个菜单加速的很好的例子
一个菜单加速的很好的例子-a menu accelerated good example
- 2022-03-09 15:52:53下载
- 积分:1
-
from one another photo out of a picture. This is a study of small graphical prog...
从一幅图片淡出另一幅图片。 这是一个学习图形编程的小程序 方便易用-from one another photo out of a picture. This is a study of small graphical programming procedures to facilitate ease of use
- 2022-03-03 10:11:03下载
- 积分:1
-
一个很酷的使窗口在关闭时渐渐消失的程序(类似淡入淡出效果)。...
一个很酷的使窗口在关闭时渐渐消失的程序(类似淡入淡出效果)。-A cool program which can make it to disappear slowly when a windows is being closed (like the fade in-fade out effection )
- 2023-09-08 17:35:03下载
- 积分:1
-
可以实现局部换肤。
与传统的换肤不同的是,他不是将整体界面换肤,而是将其中的一个Frame,button,text换肤。...
可以实现局部换肤。
与传统的换肤不同的是,他不是将整体界面换肤,而是将其中的一个Frame,button,text换肤。-can achieve partial Eurocargo. With the traditional Eurocargo different is that he is not the overall interface common. Instead of the one frame, the button, text Eurocargo.
- 2022-03-09 15:21:21下载
- 积分:1