-
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
-
LabView学习的有用文件,非常值得下载
LabView学习的有用文件,非常值得下载-LabView Learning useful documents, a very worthy download
- 2022-03-16 01:30:27下载
- 积分:1
-
我们经常会使用到组合框,而组合框是是有2种功能的
我们经常会使用到组合框,而组合框是是有2种功能的--下拉和列表。一般情况下,列表框的宽度和选择框是一样宽的,但是我们有些时候确实很需要把列表框的宽度变大,一便让我们能更好的看我们要选的东西。 为了能有这个功能,我写了下面的这个函数。首先得在你的对话框中添加一个的WM_CTLCOLOR的消息句柄,或者使用CComboBox的继承类,而且在其中添加下面的代码:-we often use to mix frame, and frames are combinations are two kinds of functions-- and the drop-down list. Under normal circumstances, the list box and the width of the selection box is the same width, but sometimes we need to do is list the width of the frame, one will enable us to better do our election of the things. To have this function, I wrote the following this function. First of all in your dialog box to add one of the news WM_CTLCOLOR handle, or use the inheritance CComboBox category, but which add the following code :
- 2022-08-02 15:44:40下载
- 积分:1
-
产生曲线并动态显示,并且有两种显示形式,使用方便,程序条理清晰易懂。...
产生曲线并动态显示,并且有两种显示形式,使用方便,程序条理清晰易懂。-This application can general the line auto and in two styles.
- 2022-07-27 22:57:45下载
- 积分:1
-
条码生成器
条码生成C#桌面应用程序。您可以生成任何文字或数字的条形码店内条码与扩展的Gif语言:C#
- 2023-05-10 11:50:03下载
- 积分:1
-
国外写的桌面融合软件
外国的桌面融合软件——源码,C++,内含文档,与原理介绍。-Desktop integration of foreign software- source, C++, containing documents, introduced with the principle.
- 2022-07-19 00:01:27下载
- 积分:1
-
shortest path search algorithm applications. Use the shortest path search as a c...
最短路径搜索算法的应用。利用最短路径搜索作为校园地图导航-shortest path search algorithm applications. Use the shortest path search as a campus map navigation
- 2023-08-02 11:05:03下载
- 积分:1
-
可以用来绘制工程曲面的例程,提供工程曲面生成算法,由vc2003.net编写...
可以用来绘制工程曲面的例程,提供工程曲面生成算法,由vc2003.net编写-can be used for surface mapping project routines, provide surface generation algorithm, prepared by vc2003.net
- 2022-01-25 15:17:04下载
- 积分:1
-
可加入图像的组合框类
可加入图像的组合框类-be added to the portfolio image frame
- 2023-08-13 22:30:03下载
- 积分:1
-
This program explains how to enable the Dra g
此程序说明如何在应用程序中启用drag-Drop功能。此外,您可以将整个目录放到程序中,它会将特定目录中的文件添加到列表中。
- 2022-11-30 09:20:03下载
- 积分:1