-
使用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
-
c语言编写的图形时钟,界面比较简单,但是可以修改!
c语言编写的图形时钟,界面比较简单,但是可以修改!-c language graphics clock, the interface is relatively simple, but can be amended!
- 2023-04-14 01:25:03下载
- 积分:1
-
Example 2
java编程实例2-Example 2
- 2022-10-01 22:20:03下载
- 积分:1
-
开发web应用程序的组件,能结合struts框架快速开发出多个层次的动态树。...
开发web应用程序的组件,能结合struts框架快速开发出多个层次的动态树。-development of the web application components, in conjunction with struts framework of the rapid development of many kinds of dynamic tree.
- 2022-02-03 23:41:13下载
- 积分:1
-
a very good category CButtonST
一个非常好的CButtonST类-a very good category CButtonST
- 2023-06-27 17:40:04下载
- 积分:1
-
我已经上传了2个项目。这是不提供适当的信息,是否它是…
I have uploaded 2 projects. It is not giving proper information whether it is uploaded properly or not
- 2023-08-07 21:40:03下载
- 积分:1
-
用 QT 写的一个跨平台的图片浏览软件。
学习QT的可以参考下。...
用 QT 写的一个跨平台的图片浏览软件。
学习QT的可以参考下。 -Written using QT, a cross-platform image browser software. QT-learning can refer to the next.
- 2022-02-15 02:32:09下载
- 积分:1
-
此程序能够实现的功能很多,有能够编辑静态文本框和编辑框都能对文字进行各种笑果处理,还有各种风格的按钮,列表框的滚动条等,并有不同的功能。...
此程序能够实现的功能很多,有能够编辑静态文本框和编辑框都能对文字进行各种笑果处理,还有各种风格的按钮,列表框的滚动条等,并有不同的功能。-this program can achieve a lot of functions, there can be static text editing box and editing text box able to laugh various fruit processing, and various styles of buttons, List of the scroll box, etc., and have different functions.
- 2022-04-10 02:51:41下载
- 积分:1
-
一个UDP打洞聊天程序,可以实现 不同子网间信息传输
一个UDP打洞聊天程序,可以实现 不同子网间信息传输-UDP holes of a chat program can be achieved between different subnet information transmission
- 2022-03-31 22:25:49下载
- 积分:1
-
这个浏览器是用vc6.0编写的,界面类似IE,但它是一个多文档程序,为了方便在各个窗口之间切换,我特意在工具条上加了一个窗口列表,你可以在此毫不犹豫地快速切换窗
这个浏览器是用vc6.0编写的,界面类似IE,但它是一个多文档程序,为了方便在各个窗口之间切换,我特意在工具条上加了一个窗口列表,你可以在此毫不犹豫地快速切换窗口、也可以双击使窗口最大化。工具条采用IE风格,仅加入了最常用按钮。一些菜单功能没有实现,不过你可以用右键菜单中的功能来完成。- This browser is compiles with vc6.0, contact surface similar
IE, but it is more than documents procedures, in order to facilitate
between each window cuts, I specially added a window on the tool strip
to tabulate, you were allowed in this fast cut window, also to be
allowed to double-click without hesitation cause the window
maximization. The tool strip uses the IE style, has only joined the
most commonly used button. Some menu functions have not realized, but
you may use in the right key menu the function to complete.
- 2022-02-21 10:30:39下载
- 积分:1