[mythtv] Strange behaviour in QT's QValueVector

florin baiduc florinbaiduc at gmail.com
Thu Mar 23 06:21:38 UTC 2006


Isaac also promised to work on this, but I decided to take a look
myself as well (and learn a bit about the system)...

On 3/23/06, florin baiduc <florinbaiduc at gmail.com> wrote:
> The original source was done with std::vector, but the vector never
> handled QObjects. For enabling the mouse, the buttons must inherit
> MythUIType, and become a QObject.
> I don't want to change the values after inserting them into the
> vector, so I don't need a vector to pointers (or do I?)..
>
>
> On 3/23/06, Anduin Withers <awithers at anduin.com> wrote:
> > > I was wondering if anybody seen this kind of sittuation before.
> > > I am trying to switch the vectors to QTValueVectors n the
> > > myththemedmenu. If I just replace the declarations (replace vector
> > > with QValueVector) I get this error for every push_back in the source.
> > > If I use pointers as the vector's objects, the error does not appear,
> > > but otoh it segfaults on a
> >
> > You want a vector of pointers, QWidgets can't be copied (what you'd need for
> > a value vector).
> >
> > Why are you replacing them? (replacing isn't exactly the right term as a
> > std::vector in the same place would fail as well)
> >
> > --
> > Anduin Withers
> >
> > _______________________________________________
> > mythtv-dev mailing list
> > mythtv-dev at mythtv.org
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> >
>


More information about the mythtv-dev mailing list