Fix QWidget disposal