Fix qtaccessiblewidgets removal logic to be compatible with Qt 4 as well.