new form created in main form is not defined

Question:

I created a class of MainWindow and a class of FirstParty which is a second form. I created a object of FirstParty with the name of firstPartyForm in MainWindow class but when i run my program it shows that the firstPartyForm is not defined do you mean FirstParty.

Asked By: lokp

||

Answers:

check your AddFirstParty.ui file, probably there is no firstPartyForm name

Answered By: who am I

I think it is because you are not using self with firstPartyForm.
Try self.firstPartyForm

Answered By: poliop
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.