code: def qindex2index(index):
          
          r = index.row()
          c = index.column()
          if c > 0x10:
              return (0x10 * r) + c - 0x11
          else:
              return (0x10 * r) + c
docs: from a QIndex (row/column coordinate system), get the buffer index of the byte