效果展示: 步骤流程:
1.使用的是UGUI,将下面的脚本拖拽到图片上即可。
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;public class CheckImage : MonoBehaviour, IDragHandler, IBeginDragHandler, IEndDragH…
ui文件拖放QGraphicsView,src文件定义QGraphicsScene赋值给图形视图。 this->scene new QGraphicsScene();ui.graph->setScene(this->scene);对graphicview过滤事件,只能在其viewport之后安装,否则不响应。
ui.graph->viewport…
捕捉异常之后手动标记回滚事务
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
没有嵌套事务,还是报Transaction rolled back because it has been marked as rollback-only异常错误 查看错误堆栈,service调用的方法外层还套…