code: def index2qindexc(self, index):
          
          r = (index // 0x10)
          c = index % 0x10 + 0x11
          return self.index(r, c)
docs: from a buffer index, get the QIndex (row/column coordinate system) of the char pane