I have a QTabWidget setup with close buttons on each tab. It works fine as I dynamically add and remove tabs except for clicking close on whichever is the first tab. Doing so causes all tabs to close. Anyone have an idea why this might be happening?