mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 18:27:23 +02:00
- SelectionBox: generic Selection box component. - DelegateSelectionBox: specialized SelectionBox to select model delegates from an instantiator (Repeater, ListView). Also Introduce a Geom2D helper class to provide missing features for intersection testing in QML.
8 lines
272 B
Python
8 lines
272 B
Python
from PySide6.QtCore import QObject, Slot, QRectF
|
|
|
|
|
|
class Geom2D(QObject):
|
|
@Slot(QRectF, QRectF, result=bool)
|
|
def rectRectIntersect(self, rect1: QRectF, rect2: QRectF) -> bool:
|
|
"""Check if two rectangles intersect."""
|
|
return rect1.intersects(rect2)
|