本文整理汇总了Python中PyQt5.QtWidgets.QGraphicsView.keyReleaseEvent方法的典型用法代码示例。如果您正苦于以下问题:Python QGraphicsView.keyReleaseEvent方法的具体用法?Python QGraphicsView.keyReleaseEvent怎么用?Python QGraphicsView.keyReleaseEvent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyQt5.QtWidgets.QGraphicsView
的用法示例。
在下文中一共展示了QGraphicsView.keyReleaseEvent方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: keyReleaseEvent
# 需要导入模块: from PyQt5.QtWidgets import QGraphicsView [as 别名]
# 或者: from PyQt5.QtWidgets.QGraphicsView import keyReleaseEvent [as 别名]
def keyReleaseEvent(self, event):
if event.key() == Qt.Key_Delete:
item = self.scene().focusItem()
self.scene().removeArea(item)
#elif event.key() == Qt.Key_Escape:
# self.first = True
QGraphicsView.keyReleaseEvent(self, event)
示例2: keyReleaseEvent
# 需要导入模块: from PyQt5.QtWidgets import QGraphicsView [as 别名]
# 或者: from PyQt5.QtWidgets.QGraphicsView import keyReleaseEvent [as 别名]
def keyReleaseEvent(self, event):
"""docstring for keyReleaseEvent"""
if event.key() == self._key_mod:
self._transform_enable = False
self._dolly_zoom_enable = False
self._panDisable()
# end if
else:
QGraphicsView.keyReleaseEvent(self, event)
示例3: keyReleaseEvent
# 需要导入模块: from PyQt5.QtWidgets import QGraphicsView [as 别名]
# 或者: from PyQt5.QtWidgets.QGraphicsView import keyReleaseEvent [as 别名]
def keyReleaseEvent(self, event):
if event.key() == Qt.Key_Control:
self.fCtrlDown = False
QGraphicsView.keyReleaseEvent(self, event)
示例4: inputGraphicsViewKeyReleaseEvent
# 需要导入模块: from PyQt5.QtWidgets import QGraphicsView [as 别名]
# 或者: from PyQt5.QtWidgets.QGraphicsView import keyReleaseEvent [as 别名]
def inputGraphicsViewKeyReleaseEvent(self,event):
QGraphicsView.keyReleaseEvent(self.inputGraphicsView, event)