-
C++
构造函数 析构函数 拷贝构造函数 赋值运算符重载 的实例(Constructor destructor copy constructor assignment operator overloading example)
- 2007-07-13 22:49:09下载
- 积分: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
-
Zigbee控制蜂鸣器
通过Zigbee协议栈,用串口助手下发命令,协调器广播命令,终端节点接受命令并执行相关操作。
- 2022-03-21 12:39:52下载
- 积分:1
-
Linux内核互斥示范
互斥是互斥的。其车厢与一个单一的关键。无论是谁,进入车厢内,将它带了钥匙。的时候,如果有人试图获得车厢,他将不得不等待。只是当他来到外面,给钥匙,将其他人可以进入里面。类似与互斥的东西。如果一个执行线程获得互斥锁,其他的线程试图获得相同的锁将被禁止。只有当第一个线程释放互斥锁,则其他线程能够获得它。以下是互斥的数据结构:
- 2022-12-06 14:05:03下载
- 积分:1
-
Type_Game
用C语言实现的键盘游戏,敲字母接掉下的字符,程序通俗易懂,适合学习C的学生朋友学习(Using C language keyboard games, then dropped out alphabetical characters, the program user-friendly, suitable for students learning C friends to learn)
- 2009-06-05 20:53:34下载
- 积分:1
-
UCOS信号量STM32F103
说明: ucos ii 系统在stm32上的应用,本样例为ucos ii 消息队列部分代码,经开发板验证可用,欢迎下载。(UCOS II system in STM32 application, this example is UCOS II message queue part of the code, validated by the development board available, welcome to download.)
- 2019-05-19 17:17:09下载
- 积分:1
-
MSComm
实例321——利用MSComm控件进行串口通信(Examples 321 use MSComm control serial communication)
- 2016-06-03 13:17:57下载
- 积分:1
-
VS2005软件中c#语言的excel编程资料
VS2005软件中c#语言的excel编程资料-VS2005 to excel in c# programming language
- 2022-02-25 03:44:12下载
- 积分:1
-
achievement-management-system
本系统从功能上划分可分为以下几大模块:功能模块管理,组权限管理,学生信息管理,课程信息管理,学生成绩管理,授课信息管理,学生信息查询,学生成绩统计等几大模块。以下将对各子模块进行说明。
功能模块管理:将系统功能模块保存到数据库中以便于动态地进行不同用户组权限的分配等操作。本模块包括功能模块的添加,删除,修改等。
组权限管理:对用户进行分组,并将权限设置到不同的用户组。
学生信息管理模块:输入学生基本信息,并可以对学生信息进行添加、查询、修改、删除。还可以关键字查询并从数据库里调出的学生基本信息.输出学生基本信息,学号、班号、姓名查询的信息结果。
课程信息管理:设置课程号,课程名,先修课等课程信息。
成绩信息管理模块:输入成绩信息,并可以对成绩信息进行添加、查询、修改、删除。还可以用关键字查询并调出数据库里的学生基本成绩信息的修改、删除等。输出查询的学生成绩信息。
授课信息管理:对教师授课信息的调度,安排等信息的管理。
学生信息查询:本模块是可对学生成绩进行查询,可按学号,姓名,年龄,所在院系,入学年份等不同条件独立查询或进行模糊查询。
学生成绩统计:对学生成绩总分,平均分等进行统计。(The system functions can be divided into several modules of the following major modules: the management of functional modules, groups, rights management, student information management, curriculum management, student performance management, teaching information management, student inquiries, student achievement statistics, etc.. The following will be the sub-module for instructions.
Management of functional modules: the system function module is saved to the database in order to facilitate dynamic allocation of operations of different user group permissions. This module includes the function module to add, delete, modify.
Group rights management: the user group and permission settings to different groups of users.
Student information management module: Enter the students basic information, and student information to add, query, modify, delete. Can also be a keyword query and bring up the students basic information from the database. Output student, st)
- 2012-07-03 08:55:56下载
- 积分:1
-
visionpro vs 代码
窗体设计,通讯等,在visionpro的基础上开发vb,请安装vs2008或vs2012
- 2023-06-09 21:05:04下载
- 积分:1