code: def open_report_template_path(self):
          
          # noinspection PyCallByClass,PyTypeChecker
          directory_name = QFileDialog.getExistingDirectory(
              self,
              self.tr('Templates directory'),
              self.leReportTemplatePath.text(),
              QFileDialog.ShowDirsOnly)
          if directory_name:
              self.leReportTemplatePath.setText(directory_name)
docs: Open File dialog to choose the report template path.