本文整理汇总了Python中PyQt5.QtCore.Qt.CrossCursor方法的典型用法代码示例。如果您正苦于以下问题:Python Qt.CrossCursor方法的具体用法?Python Qt.CrossCursor怎么用?Python Qt.CrossCursor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyQt5.QtCore.Qt
的用法示例。
在下文中一共展示了Qt.CrossCursor方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: mousePressEvent
# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import CrossCursor [as 别名]
def mousePressEvent(self, event):
super(CColorStraw, self).mousePressEvent(event)
# 设置鼠标样式为十字
self.setCursor(Qt.CrossCursor)
示例2: mousePressEvent
# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import CrossCursor [as 别名]
def mousePressEvent(self, event):
super(Label, self).mousePressEvent(event)
self.ismd = True # 按下
# 设置鼠标样式为十字
self.setCursor(Qt.CrossCursor)
示例3: __init__
# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import CrossCursor [as 别名]
def __init__(self, lang, areaType, statusBar):
QGraphicsView.__init__(self)
self.ocrscene = OcrScene(self, lang, areaType)
self.setScene(self.ocrscene)
self.setCacheMode(QGraphicsView.CacheBackground)
self.setRenderHint(QPainter.Antialiasing)
self.setTransformationAnchor(QGraphicsView.AnchorUnderMouse)
self.setResizeAnchor(QGraphicsView.AnchorViewCenter)
self.setMinimumSize(200, 200)
self.language = lang
self.statusBar = statusBar
self.areaType = areaType
self.resizingArea = None
self.resizingAreaPos = None
self.resizingAreaRect = None
self.resizingEdge = None
self.resizingStartingPos = None
self.areaBorder = float()
self.areaTextSize = float()
self.setCursor(Qt.CrossCursor)
self.scene().isModified = False
self.bResizing = False
self.filename = None
Image.init()