qt-interest@trolltech.com
[Top] [All Lists]

Re: [Qt-interest] QImage mirror crash

Subject: Re: [Qt-interest] QImage mirror crash
From: "Ian Thomson"
Date: Tue, 09 Dec 2008 12:39:25 +0000
Hi,

If you're not going to show code or provide a minimal example which 
shows the bug then there is not much anyone can do to help.

Any known issues are listed in the trolltech task tracker on the 
website. The only open one which mentions QImage and mirrored is
http://trolltech.com/developer/task-tracker/index_html?method=entry&id=208771
Perhaps that is related.

Cheers,
Ian.



Richard Baron Penman wrote:
> 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@xxxxxxxxx> 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@xxxxxxxxx>:
>>
>>> 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@xxxxxxxxxxxxx
>>  > http://lists.trolltech.com/mailman/listinfo/qt-interest
>>  >
>>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest@xxxxxxxxxxxxx
> http://lists.trolltech.com/mailman/listinfo/qt-interest

This email and any files transmitted with it are confidential and are intended 
solely for the use of the individual or entity to whom they are addressed.  If 
you are not the original recipient or the person responsible for delivering the 
email to the intended recipient, be advised that you have received this email 
in error, and that any use, dissemination, forwarding, printing, or copying of 
this email is strictly prohibited. If you received this email in error, please 
immediately notify the sender and delete the original.



_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest

<Prev in Thread] Current Thread [Next in Thread>