-
程序实现最基本的万年历功能。
显示画面式样如下:
Mon. Tues. Wed. Thurs. Fri. Sat. Sun.
1 2 3 4...
程序实现最基本的万年历功能。
显示画面式样如下:
Mon. Tues. Wed. Thurs. Fri. Sat. Sun.
1 2 3 4 5 6
7 8 9 10 11 12 13
…………
Please input year and month
画面要求说明:
1 显示某年某月的一个月内的月历。
2 周末的日期和星期标记用红色显示。
3 显示的日期右侧对齐。并且和星期也对期。
2.2 动作要求
程序默认显示2007年7月的月历,要求可以通过程序输入的方式指定显示年月。
其中年份控制在从1980到2100年之间,不符合要求重新输入。
输入年月后显示清屏,重新显示(要求原来的显示清除)。
按”Q”或”q”键退出程序。
-Procedures to achieve the most basic calendar functions. Display style as follows: Mon. Tues. Wed. Thurs. Fri. Sat. Sun. 1 2 3 4 5 67 8 9 10 11 12 13 ... ... ... ... Please input year and month screen requirements Description: 1 shows a certain period of within one month of the calendar. 2 over the weekend marking the date and week display in red. 3 shows the date right-aligned. And are also on the period of weeks. 2.2 shows the default action request procedure in July 2007 of the calendar, the demands, which can be imported through designated procedures show date. One year of control from the 1980-2100 years, do not meet the req
- 2022-09-02 09:40:03下载
- 积分:1
-
使用Qt处理图片资源
Use Qt in image development.
QPixmap largepixmap;
QPixmap smallpixmap;
QPixmap maskpixmap;
QPixmap zoompixmap;
QPoint offset(0,0);
QPoint dragpos(150,150);
QPoint set(90,50);
//加载图片:
largepixmap.load("ImagesMainGui.png");
smallpixmap = largepixmap.scaled(largepixmap.size()/1.2);
maskpixmap.load("ImagesMainGui.png");
//绘制底层图片(非放大镜区域图案):
QPainter painter(this);
painter.drawPixmap(offset,smallpixmap);
painter.end();
//计算放大区域圆形的半径及所占矩形面积
int dim = qMin(width(), height());
int magnifierSize = dim * 5 / 6;
int radius = magnifierSize / 2;
int ring = radius - 15;
QSize box = QSize(magnifierSize, magnifierSize);
- 2022-02-09 22:59:08下载
- 积分:1
-
The personnel management system
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-08-09 18:57:06下载
- 积分:1
-
窗口分割
用于实现多窗口的分割。一个窗口用于查找,一个窗口显示查找到的文件内容。可以看到文件对话框的实现,多窗口的实现等的一个小程序
- 2022-03-14 01:03:50下载
- 积分:1
-
各个文件夹以树状的结构来显示文件信息
各个文件夹以树状的结构来显示文件信息-various folders in a tree structure of the document to show information
- 2022-01-26 05:00:43下载
- 积分:1
-
This is a resource manager, such as through the tree control of computer resourc...
这是一个资源管理器,通过树控件等来实现对计算机资源的一些基本操作,-This is a resource manager, such as through the tree control of computer resources to achieve some of the basic operation,
- 2022-07-17 11:11:36下载
- 积分:1
-
vc Tab Control s use example
vc Tab Control使用示例- vc Tab Control s use example
- 2022-04-18 07:25:12下载
- 积分:1
-
Outlook style interface and menu pages control, the use of two reusable c catego...
Outlook式样界面菜单和页面控制,利用了两个可复用的c++类:CXToutlookBarhe 和 CXTpagerCtrl-Outlook style interface and menu pages control, the use of two reusable c categories : CXToutlookBarhe and CXTpagerCtrl
- 2022-01-25 16:46:33下载
- 积分:1
-
- 2022-02-12 01:03:42下载
- 积分:1
-
interface development needs of some components
界面开发所需要的一些组件-interface development needs of some components
- 2023-09-06 08:00:03下载
- 积分:1