Make sure this OptionsWindow is a QObject based class, check if you have called the correct constructor on derived __init__ function.
BR 2010/11/22 Anderson Lizardo <[email protected]>: > 2010/11/21 Dominik "Socek" Długajczyk <[email protected]>: >> I have a problem. Using ".show()" on "second window". It does not work >> from a slot method (after clicking a button). Does this is know bug, >> or I have made something wrong ? >> Code looks like this: >> >> @QtCore.Slot() >> def optionswindow(self): >> options = OptionsWindow() >> options.show() > > My guess: the "options" object is being destroyed by the Python > garbage collection after it loses scope. Try creating a reference to > it so it is not destroyed by the garbage collector, e.g.: > >> @QtCore.Slot() >> def optionswindow(self): >> self.options = OptionsWindow() >> self.options.show() > > Regards, > -- > Anderson Lizardo > OpenBossa Labs - INdT > Manaus - Brazil > _______________________________________________ > PySide mailing list > [email protected] > http://lists.openbossa.org/listinfo/pyside > -- Renato Araujo Oliveira Filho Instituto Nokia de Tecnologia - INdT Mobile: +55 (81) 8704-2144 _______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
