[Qt-interest] QImage mirror crash
Denton Vis
vistapro7 at hotmail.com
Tue Dec 9 09:03:17 CET 2008
Some more debugging info from the crash might help someone help you, since
we cannot see your code to figure it out.
"Richard Baron Penman" <richardbp+qt at gmail.com> wrote in message
news:a6040a360812081729n7f3057daw4af98d88691e9531 at mail.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
More information about the Qt-interest-old
mailing list