-
ZNodes
qt中提供了QGphicsView,QGraphicsScene,QGraphicsItem,QGraphicsPixmapItem是QGraphicsItem的子类
分辨创建它们的实例:view,scene,item,然后通过各自的方法scene->addItem(item);view->setScene(scene);就可以达到类似下图的效果,想要进一步定制,则要继承QGraphicsItem或QGraphicsPixmapItem,然后重写paint()、boundingRect()等方法,此外如果还想要获取鼠标事件,重写mousePressEvent等事件就好了,注意,一旦重写了mousePressEvent方法,就以为了qt不会再自动处理item的任何press事件了,可以在你重写的mousePressEvent方法中最后添加QGraphicsItem::mousePressEvent(event);解决这个问题,就是说你获取到了鼠标事件,但是依然让qt处理这个鼠标事件。(QGphics View, QGraphics Scene, QGraphics Item and QGraphics PixmapItem are provided in qt. They are subclasses of QGraphics Item.
Resolve the instances of creating them: view, scene, item, and then use their respective methods scene - > addItem (item); view - > setScene (scene); you can achieve the effect similar to the figure below. If you want to further customize, you need to inherit QGraphics Item or QGraphics Pixmap Item, and then rewrite paint (), boundingRect () and other methods, and if you want to do so. If you want to get mouse events, rewrite events like mousePressEvent. Note that once you rewrite the mousePressEvent method, you think that QT will no longer automatically handle any press events of item. You can finally add QGraphics Item:: mousePressEvent (event) to your rewritten mousePressEvent method to solve this problem. That is, you get the mouse event, but still let QT handle the mouse event.)
- 2020-06-16 20:20:01下载
- 积分:1
-
Dzxtest1
一个绘制等值线的程序,可输入固定格式的文件,文件也在压缩包中(a contour mapping procedures, fixed format document, which also contained within)
- 2007-01-19 16:12:34下载
- 积分:1
-
006854
枚举IE插件源码程序,结合易语言扩展界面支持库和易语言模块,实现枚举IE插件程序信息功能。(Enumeration IE plug- source program, combined with easy language and easy language support library expansion interface module, enumerate IE plug-ins Messaging.)
- 2015-10-06 13:00:26下载
- 积分:1
-
waterfilling
通信中,非常经典的注水算法的代码,在OFDM中子载波,功率分配中调用(Communication, very classic water algorithm code, in the neutron-carrier OFDM, power allocation call)
- 2021-01-09 11:18:51下载
- 积分:1
-
117489
提醒备忘时钟源码,例程结合易语言扩展界面支持库,调用API函数实现具有提醒备忘功能的时钟。(Reminder notes clock source , combined with routines easy language support library expansion interface , call the API function has a reminder memo function clock .)
- 2016-09-02 16:29:27下载
- 积分:1
-
34887
电子书浏览制作工具1.0版源码,程序结合易语言扩展界面支持库和操作系统界面功能支持库,实现电子书浏览制作。(E-book Builder version 1.0 source code , the program combined with easy language support library expansion interface and operating system support library interface functions to achieve e-book production.)
- 2015-12-20 12:38:09下载
- 积分:1
-
Exp_Tab
可以实现安卓中TabHost选项卡的功能,并且用意图进行跳转(Can realize the function of the TabHost TAB in the android, and with intention to jump)
- 2013-12-19 11:24:05下载
- 积分:1
-
BTKMpath
Chat program (client), instant messaging development()
- 2017-12-15 19:02:31下载
- 积分:1
-
06402
设置电脑权限源码,程序结合易语言扩展界面支持库和数据库操作支持库,调用易语言模块和API函数实现设置电脑权限功能。(Set permissions for the source computer , the program combined with easy language support library expansion interface and operations support library , call easy language module and API functions to set permissions feature computer .)
- 2016-11-06 17:04:02下载
- 积分:1
-
0123
说明: 这个程序可以将位图图标放置在菜单中,代码比较简单(This procedure can be placed bitmap icon in the menu, the code is relatively simple)
- 2009-08-15 21:47:49下载
- 积分:1