@staticmethod
def qindex2index(index):
    """ from a QIndex (row/column coordinate system), get the buffer index of the byte """
    r = index.row()
    c = index.column()
    if c > 16:
        return 16 * r + c - 17
    else:
        return 16 * r + c
