[Qt-interest] QImage mirror crash
Richard Baron Penman
richardbp+qt at gmail.com
Tue Dec 9 13:34:46 CET 2008
if I ignore the output of mirrored() and use the original image it
doesn't crash:
image.mirrored()
However if I try to use the output then it crashes:
image = image.mirrored()
On 12/9/08, Benjamin <ikipou at gmail.com> wrote:
> On Linux I have no problem with mirrored. Seeing your code should help
> to find the problem.
>
> 2008/12/9 Richard Baron Penman <richardbp+qt at gmail.com>:
>
> > hello,
> >
> > I want to flip a QImage and until now have been using the following method:
> >
> >> QRect rectDisplay(0, 0, m_displayWidth, m_displayHeight);
> >> painter.scale(1, -1);
> >> painter.translate(0, -rectDisplay.height());
> >> painter.drawImage(rectDisplay, m_Image);
> >
> > This has worked fine. I noticed that QImage has a mirrored() function
> > that should achieve the same effect with arguments of (true, false). I
> > would like to clean up my code and use this instead, but when I try it
> > my program crashes.
> > Are there known problems with QImage::mirrored()?
> >
> > FYI: Qt 4.4.2, XP SP2
> >
> > Richard
>
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-interest
> >
>
More information about the Qt-interest-old
mailing list