<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_outline(self, color):
 """ Uses an outline rectangle. :param color: Color of the outline rect :type color: QtGui.QColor """

        self.format.setProperty(QtGui.QTextFormat.OutlinePen,
                                QtGui.QPen(color))