-
BitmapMenu
vc——创建带有图标的菜单BitmapMenu(vc- create a menu with icons BitmapMenu)
- 2011-07-24 20:59:03下载
- 积分:1
-
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
-
2014zkjz
鹅鹅鹅饿鹅鹅鹅饿鹅鹅鹅饿鹅鹅鹅饿鹅鹅鹅饿鹅鹅鹅饿鹅鹅鹅饿(may may may)
- 2013-10-17 22:35:30下载
- 积分:1
-
51284
桌面菜单栏源码,例程程序结合易语言拖放支持库和应用接口支持库,调用API函数实现桌面菜单栏功能。(Desktop menu bar source , routine program combined with easy language drop support libraries and application interfaces support library , call the API functions to achieve the desktop menu bar functions .)
- 2015-10-21 13:47:30下载
- 积分:1
-
SLAM_C
用C++编写的单目视觉SLAM 图形化界面 VC++6.0环境(monoslam vc++ environment)
- 2010-06-24 09:00:42下载
- 积分:1
-
tfbffd3
易语言 DNF后台喊话工具 源码 DNF Automatic message DNF Automatic message()
- 2017-12-18 11:01:00下载
- 积分:1
-
very_useful_SmartEdit
说明: 非常有用的智能编辑框。过滤非设定的输入字符,可以设定为NUMBER、LETTER、FLOATINGPT、OTHERCHAR、SIGNED、UNDERSCORE。(Very useful smart edit box. Filtering of non-setting input characters can be set to NUMBER, LETTER, FLOATINGPT, OTHERCHAR, SIGNED, UNDERSCORE.)
- 2008-08-29 21:59:40下载
- 积分:1
-
envi_batch_template
idl环境下海量数据批处理的编写界面创建和初始化代码(idl batch environment, massive data creation and initialization code to write the interface)
- 2020-11-19 13:59:38下载
- 积分:1
-
SkinShow
换肤程序小例程,里面实现了程序换皮肤的基本方法,注意,如果程序找不到图片的话,请把pic文件夹放入Debug文件夹。(Skin small routine procedure, which the realization of the procedures for the skin s basic method, note that if not able to locate the picture, please put pic folder Add Debug folder.)
- 2008-12-22 21:39:16下载
- 积分:1
-
串口调试助手
说明: 串口调试助手实现程序,串口收发显示,定时发送(Serial debugging assistant)
- 2020-07-01 22:47:22下载
- 积分:1