MCPcopy Create free account
hub / github.com/PyQt5/PyQt / is_titlebar

Method is_titlebar

Demo/NewFramelessWindow.py:85–90  ·  view source on GitHub ↗

判断是否是标题栏 :param pos: QPoint :return: bool

(self, pos)

Source from the content-addressed store, hash-verified

83 return Qt.ArrowCursor
84
85 def is_titlebar(self, pos):
86 """判断是否是标题栏
87 :param pos: QPoint
88 :return: bool
89 """
90 return pos.y() <= self.TitleHeight
91
92 def moveOrResize(self, window, pos, width, height):
93 edges = self._get_edges(pos, width, height)

Callers 2

moveOrResizeMethod · 0.95
eventFilterMethod · 0.95

Calls 1

yMethod · 0.80

Tested by

no test coverage detected