Added tab closing for QTabWidget resizeEvent and mousePressEvent