'Remove the widget at `index`.
.. note:: The widget hidden but is is not deleted.'

def removeItem(self, index):

    self.__contentsLayout.takeAt(((2 * index) + 1))
    self.__contentsLayout.takeAt((2 * index))
    page = self.__pages.pop(index)
    for i in range(index, self.count()):
        self.__pages[i] = self.__pages[i]._replace(index=i)
    page.button.deleteLater()
    page.widget.hide()
    page.widget.setParent(self)
    self.__updatePositions()
    self.__updateSelected()
    self.updateGeometry()
