<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
 <meta http-equiv='Content-Type' content='text/html;charset=us-ascii'>
 <style>BODY{font:10pt Tahoma, Verdana, sans-serif;}</style>
</head>
<body>
<br><blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;"><hr><b>From:</b> florin baiduc [mailto:florinbaiduc@gmail.com]<br><b>To:</b> Development of mythtv [mailto:mythtv-dev@mythtv.org]<br><b>Sent:</b> Thu, 23 Mar 2006 13:22:06 +0800<br><b>Subject:</b> Re: [mythtv] Strange behaviour in QT's QValueVector<br><br><!-- -->That's one ideea, thanks for it. But still, I am wondering why do I<br>get this error (while using values instead of pointers), and what<br>could cause it?<br></blockquote>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..<br><br>I don't have access to the mythtv source atm, what is newbutton declared as (ThemeButton pointer or object?), and how do you declare <span style="font-family: monospace; font-style: normal; font-variant: normal; font-weight: normal; font-size: 90%; line-height: normal; font-size-adjust: none; font-stretch: normal; margin-top: 0px;">buttonList</span>?  <br><br><br></body></html>