ah, descobri de acordo com isto: Adding a form to a plugin - #3 by Johani
tive que usar setupComponent()