-
使用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
-
used to create irregular Window source, to be a beautiful program interface
用来生成不规则窗体的源程序,做个漂亮的程序界面-used to create irregular Window source, to be a beautiful program interface
- 2022-03-06 13:06:18下载
- 积分:1
-
Development of an interface with the SWT Designer program can copy some files un...
一个用SWT Designer开发的界面程序 可以拷贝指定目录下的某些文件到其他地方,实现了文件浏览器的功能,可以对项目进行排序,最后按XML格式生成项目说明,同时生成TXT的目录结构
这是我在公司为公司拷贝文件方便做的一个小工具 并不一定对大家都适合 -Development of an interface with the SWT Designer program can copy some files under the specified directory to other places to achieve the file browser functions, you can sort the project, the final project description is generated by XML format, while creating the directory structure that TXT I copied the file in the company to facilitate the company to do a little tool does not necessarily fit all
- 2022-02-13 09:38:37下载
- 积分:1
-
雁过留声,人过留名。鼠标过留下什么呢?留下彩色的回忆。本程序示例了ie风格的按钮。当鼠标通过时可以突出显示,风格独特。...
雁过留声,人过留名。鼠标过留下什么呢?留下彩色的回忆。本程序示例了ie风格的按钮。当鼠标通过时可以突出显示,风格独特。-Yanguoliuqing, people who go down. Mouse over left? Left color memories. Examples of this procedure ie style button. When the mouse can be highlighted and unique style.
- 2022-03-15 14:31:46下载
- 积分:1
-
Splitter控件的文档程序,它使用CFormView类的作用。
这是一个关于Splitter控件的文档程序,它利用CFormView类实现了不同视图间的数据交互和控件响应。-Splitter controls on the documentation procedures, it uses CFormView category achieved between different views of the data and control interactive response.
- 2022-07-14 19:47:39下载
- 积分:1
-
1. 经典IPC问题的分析报告 根据课本所提供的几个实例或自己查找到的IPC实例,写出具体的模型的设计思想,写出相应的伪代码,并针对于伪码写出具体的设计思路,每...
1. 经典IPC问题的分析报告 根据课本所提供的几个实例或自己查找到的IPC实例,写出具体的模型的设计思想,写出相应的伪代码,并针对于伪码写出具体的设计思路,每个信号量的设置含义及目的,并对于设计的每行伪码给出详细地解释,对其可能被中断情况给与分析。(如有可能,可以利用多线程编程对某个算法具体实现)-1. IPC classic analysis of the textbooks in accordance with the provision of several examples or to find their own examples of the IPC, write specific model of the design ideas, write the corresponding pseudo-code and address to write pseudo-code specific design ideas, each set of signal meaning and purpose and design for every trip PN code is explained in detail, which may be given in case of interruption analysis. (If possible, can take advantage of multithreaded programming algorithm for a specific realization)
- 2023-01-23 05:45:03下载
- 积分:1
-
3ds模型读入及显示
非常好的基于VC++/OPENGL读入及显示3ds模型程序,纹理效果清晰,代码简洁,亲测可用。
- 2022-06-30 07:21:48下载
- 积分:1
-
这是用vb 开发的新项目。是新手门学学的例子。希望大家喜欢。...
这是用vb 开发的新项目。是新手门学学的例子。希望大家喜欢。-vb this is the development of new projects. Greenhorn doors learn example. Hope you like them.
- 2022-06-28 19:47:43下载
- 积分: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
-
LED控制系统界面
应用背景这个是VB上位机控制LED灯的程序。欢迎大家下载、试用。谢谢大家的支持!关键技术一个简单的LED控制系统的界面程序,希望大家下载借鉴一下,谢谢
- 2023-08-08 04:35:03下载
- 积分:1