def _create_action(<EOL>self,<EOL>icon_name: Optional[str],<EOL>title: str,<EOL>slot_function: Callable[[None], None],<EOL>tool_tip: Optional[str]=None)-> QAction:
action = QAction(title, self)<EOL>if icon_name:<EOL><INDENT>action.setIcon(QIcon.fromTheme(icon_name))<EOL><DEDENT>action.triggered.connect(slot_function)<EOL>if tool_tip:<EOL><INDENT>action.setToolTip(tool_tip)<EOL><DEDENT>return action<EOL>
QAction factory. All items created belong to the calling instance, i.e. created QAction parent is self.