def rect_to_tuple(rect):
 return (rect.x(), rect.y(), rect.width(), rect.height())

def rect_to_tuple ( rect ) : return ( rect . x ( ) , rect . y ( ) , rect . width ( ) , rect . height ( ) )
convert a qrectf into a tuple .