-
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
-
流程设计程序
资源描述
支持在视图上任意编辑图元,设置图元的属性等。可编辑的图元包括文字、图片、多边形等类似visio软件,但可以定义每个图元自己的属性。图元之间还可以结合使用。
// FlowcharterView.h : interface of the CFlowcharterView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_FLOWCHARTERVIEW_H__50CDD008_9534_443D_8161_E058963BE0B8__INCLUDED_)
#define AFX_FLOWCHARTERVIEW_H__50CDD008_9534_443D_8161_E058963BE0B8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "FlowchartEditor/FlowchartEditor.h"
class CFlowcharterView : public CView
{
protected: // create from serialization only
CFlowcharterView();
DECLARE_DYNCREATE(CFlowcharterView)
// Attributes
public:
CFlowcharterDoc* GetDocument();
// Operations
public:
- 2022-01-22 07:18:46下载
- 积分:1
-
学习VC控件过程中做的大量控件集合。包含
滚动条、进度条、滑块、上下、动画、树形、列表等...
学习VC控件过程中做的大量控件集合。包含
滚动条、进度条、滑块、上下、动画、树形、列表等-learning process controls do control large pool. Includes rolling of the progress of the slider and vertically, animation, tree, list
- 2023-04-26 12:10:03下载
- 积分:1
-
USB 控制
这个小程序是USB协议的实习与通讯代码。欢迎下载、使用。谢谢大家的支持。
- 2022-05-07 03:02:04下载
- 积分:1
-
自己做的图表控件,效果挺好,欢迎大家使用.
自己做的图表控件,效果挺好,欢迎大家使用.- Own do the graph controls, the effect very well, welcome
everybody use
- 2022-03-23 22:28:12下载
- 积分:1
-
非常精美的电子表!
非常精美的电子表!-very attractive electronic watches!
- 2022-03-25 02:45:22下载
- 积分:1
-
一个带有启动画面的程序模板源代码 界面类编程 很不错哦
一个带有启动画面的程序模板源代码 界面类编程 很不错哦 -start with a picture of the procedure template source code programming interface category quite oh
- 2022-08-02 18:30:08下载
- 积分:1
-
Improved grid control, add a user editing, right
改进的网格控件,添加了用户编辑,右键菜单,复制,黏贴,剪贴的功能-Improved grid control, add a user editing, right-click menu, copy, paste, cut and paste function
- 2022-03-12 00:19:23下载
- 积分:1
-
自定义颜色的按钮控件、静态框控件、编辑框及复选框
自定义颜色的按钮控件、静态框控件、编辑框及复选框- Controls, the static frame from the definition color button
controls, edits the frame and the reelection frame
- 2022-01-25 23:49:37下载
- 积分:1
-
实现了聊天功能, 输入对方IP就可以进行即时聊天,里面实现了动态加载皮肤的功能,具体看代码...
实现了聊天功能, 输入对方IP就可以进行即时聊天,里面实现了动态加载皮肤的功能,具体看代码-Achieved a chat function, enter the other IP will be able to conduct real-time chat, which realized the dynamic loading skin functions, specific look at the code
- 2022-03-09 10:10:37下载
- 积分:1