查看完整版本: [--
hoverEnterEvent(QGraphicsSceneHoverEvent *event)的选中问题
--]
QTCN开发网
->
Qt基础编程
->
hoverEnterEvent(QGraphicsSceneHoverEvent *event)的选中问题
[打印本页]
登录
->
注册
->
回复主题
->
发表主题
wuxing2018
2019-07-10 16:29
hoverEnterEvent(QGraphicsSceneHoverEvent *event)的选中问题
利用QT的
QGraphics
Item
画了一个多线段,但是在调用hoverEnterEvent(QGraphicsSceneHoverEvent *event)的时候发现,每次一进入多线段所包裹的区域,就选中当前多线段。这不是我想要的,因为我的画面内有许多的多线段的堆叠,我想有没有什么方式,我用鼠标点到哪条线,就选中当前多线段,而不是点中多线段所在的区域就表示选中该多线段。
wuxing2018
2019-07-10 17:23
自己顶下
dbzhang800
2019-07-10 19:41
你是想找这个么 QGraphicsItem::clipPath()
wuxing2018
2019-07-11 11:16
dbzhang800
:
你是想找这个么 QGraphicsItem::clipPath()
(2019-07-10 19:41)
我查下,感谢版主回复!!!
wuxing2018
2019-07-11 11:48
dbzhang800
:
你是想找这个么 QGraphicsItem::clipPath()
(2019-07-10 19:41)
万能的斑竹,请问这个 函数咋使用?
查看完整版本: [--
hoverEnterEvent(QGraphicsSceneHoverEvent *event)的选中问题
--] [--
top
--]
Powered by
phpwind
v8.7
Code ©2003-2011
phpwind
Gzip disabled