code: def insertOrderedList(self):
          
          cursor = self.editor().textCursor()
          currlist = cursor.currentList()
          new_style = QTextListFormat.ListDecimal
          indent = 1
          
          if currlist:
              format = currlist.format()
              indent = format.indent() + 1
              style  = format.style()
              
              if style == QTextListFormat.ListDecimal:
                  new_style = QTextListFormat.ListLowerRoman
              elif style == QTextListFormat.ListLowerRoman:
                  new_style = QTextListFormat.ListUpperAlpha
              elif style == QTextListFormat.ListUpperAlpha:
                  new_style = QTextListFormat.ListLowerAlpha
          
          new_format = QTextListFormat()
          new_format.setStyle(new_style)
          new_format.setIndent(indent)
          new_list = cursor.createList(new_format)
          
          self.editor().setFocus()
          
          return new_list
docs: Inserts an ordered list into the editor.