-
使用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
-
使用ListCtrl控件的程序,可以随意改变每列字体大小…
本程序采用listctrl控件,能随意改变每一栏的字体大小,能随便改变每一栏的字体颜色以及每一栏的背景颜色,颜色可自由设定(R,G,B),同时整个栏全屏显示,对学习修改控件属性有很大的用处。-the procedures used listctrl controls, can randomly change each column font size, can easily change the font of each column and each column color of the background color scheme, the freedom to set (R, G, B), while the entire column in full-screen, right to amend the Control study attributes great useless.
- 2022-04-07 13:17:30下载
- 积分:1
-
javascript编写的日期,用户注册代码
这里是一个简单的用户注册,有出生日期,最主要的是,日期是调用外部的js文件,方便统一日期格式,输入简单
- 2022-11-10 10:00:02下载
- 积分:1
-
医院管理
小型检查医院的医院管理;
- 2022-12-21 20:05:03下载
- 积分:1
-
本程序实现了设置墙纸、令关闭命令不可用和禁用Ctrl+Alt+Del组合键的功能...
本程序实现了设置墙纸、令关闭命令不可用和禁用Ctrl+Alt+Del组合键的功能-This procedure has set the wallpaper, so that the closure order is not available and disable Ctrl+ Alt+ Del key combination function
- 2023-06-07 10:40:04下载
- 积分:1
-
usually Windows application window is rectangular pieces of. So line interface v...
通常Windows应用程序的窗件都是矩形的。使行界面非常单调。本程序创建一个椭圆形窗件。可以用鼠标拖动窗件。-usually Windows application window is rectangular pieces of. So line interface very monotonous. The procedure to create an oval window pieces. Drag the mouse can be used pieces of the window.
- 2022-11-20 09:05:04下载
- 积分:1
-
CHtmlView 网页操作
简单小程序,使用CHtmlView类浏览网页,同时解决了新网页在同一个view里打开。同时也尝试修改网页元素值
- 2022-05-22 22:49:54下载
- 积分:1
-
window TC
窗口开发 TC 源码,简单的指令形式-window TC-source development, the simple directive forms
- 2022-07-04 05:33:37下载
- 积分:1
-
对windows中drag
对windows中drag-drop操作进行有巧妙的封装,使拖曳操作的编程变得简单易用,有类的使用例子代码。-Of windows in the drag-drop operations are clever packaging, so that programming drag operation become easy to use, there are examples of the use of category code.
- 2022-05-09 09:51:57下载
- 积分:1
-
dynamic_line_real_show_like_windows
dynamic_line_real_show_like_windows
做的一个界面类似win7系统的任务管理器的。
做的一个界面类似win7系统的任务管理器的。
做的一个界面类似win7系统的任务管理器的。
做的一个界面类似win7系统的任务管理器的。
做的一个界面类似win7系统的任务管理器的。
- 2022-01-30 20:28:43下载
- 积分:1