Don't pass parent widget in constructor. We call setLayout later.