code: def qteSetWidgetFocusOrder(self, widList: tuple):
          if len(widList) < 2:
              return
          self.qteAutoremoveDeletedWidgets()
          widList = [_ for _ in widList if _ is not None]
          for wid in widList:
              if wid not in self._qteAdmin.widgetList:
                  msg = 'Cannot change focus order because some '
                  msg += 'widgets do not exist.'
                  self.qteLogger.warning(msg)
                  return
          newList = [widList[0]]
          for wid in widList[1:]:
              if wid not in newList:
                  newList.append(wid)
          if len(newList) < 2:
              return
          for wid in newList[1:]:
              self._qteAdmin.widgetList.remove(wid)
          startIdx = self._qteAdmin.widgetList.index(newList[0]) + 1
          for idx, wid in enumerate(newList[1:]):
              self._qteAdmin.widgetList.insert(startIdx + idx, wid)