[mythtv] Strange behaviour in QT's QValueVector

tj htpc at treblid.dyndns.org
Thu Mar 23 05:35:03 UTC 2006


From: florin baiduc [mailto:florinbaiduc at gmail.com]
To: Development of mythtv [mailto:mythtv-dev at mythtv.org]
Sent: Thu, 23 Mar 2006 13:22:06 +0800
Subject: Re: [mythtv] Strange behaviour in QT's QValueVector

That's one ideea, thanks for it. But still, I am wondering why do I
get this error (while using values instead of pointers), and what
could cause it?
I don't use this class much so I can't be sure. But iirc QValueVector stores everything by value... Hence when you push back some object (e.g. a QWidget or something).. It actually stores a copy of the object (or whatever), not a reference to the actual object itself. Hence you can modify one but not affect the other.. If that's what you want..

I don't have access to the mythtv source atm, what is newbutton declared as (ThemeButton pointer or object?), and how do you declare buttonList?  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20060323/06103872/attachment.htm 

More information about the mythtv-dev mailing list