[Tutor] [SOLVED] Basic QT query #2

Dave S pythontut at pusspaws.net
Sun Jul 16 00:28:44 CEST 2006


On Friday 14 July 2006 23:21, Dave S wrote:
> On Friday 14 July 2006 19:21, Dave S wrote:
> > Hi all,
> >
> > I am trying to get to grips with QT, putting a friendly face on some of
> > my apps :) Its early days and my first attempt but I expected the
> > following to print 'hi it works' every second.
> >
> > There problem I am stuck with is ...
> >
> > The debugged program raised the exception unhandled RuntimeError
> > "underlying C/C++ object has been deleted" At line 24
> >
> > ie "self.timer = self.startTimer(1000)". First of all I did not have an
> > assignment ie I just had "self.startTimer(1000)" realising Python would
> > garbage collect I added an assignment but still the same problem.
> >
> > Also I am struggling with "QObject.connect(self.tickerevent,
> > PYSIGNAL("ticker"), self.hello)" I am unsure of what the source of the
> > connect is - I suspect my guess of self.tickerevent is wrong. The source
> > of the event should be PYSIGNAL("ticker") ?
> >
> > Any ideas or suggestions much appreciated
> >
> > Cheers
> >
> > Dave

SOLVED - Sometimes trying & trying is a good way to learn :)

Dave


More information about the Tutor mailing list