[Qt-interest] segmentation fault confusion

Scott Aron Bloom Scott.Bloom at sabgroup.com
Thu Feb 12 17:20:37 CET 2009


What is the value of rotatepic in the debugger at the time of the
segfault...

Scott

> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Avishek_Sharma
> Sent: Wednesday, February 11, 2009 9:10 PM
> To: qt-interest at trolltech.com
> Subject: [Qt-interest] segmentation fault confusion
> 
> Hi everyone,
>    am working on a photo gallery which was designed using Qt 3.3.
> 
> All that I changed in the layout(which I did using designer) was add a
Label
> 'rotatepic' near the 'Rotate' button.
> 
> In the slot rotate() for the 'Rotate' button,I added one extra line-
> rotatepic->setPaletteBackgroundColor(QColor(170,255,0));
> 
> so that when I click the 'Rotate 'button,the 'rotate' label next to it
also
> changes to the same colour as the 'Rotate' button changes to.But,when
I run
> the program,I get a segmentation fault when I click the 'Rotate'
button.
> 
> If I comment out the line rotatepic->setPaletteBack....., The 'Rotate'
feature
> works fine.
> 
> I can't figure out what's wrong.
> Please advice.
> 
> Thanks in advance.
> Avi
> 
> 
> 
> DISCLAIMER:
> This email (including any attachments) is intended for the sole use of
the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE
> COMPANY INFORMATION. Any review or reliance by others or copying or
> distribution or forwarding of any or all of the contents in this
message is
> STRICTLY PROHIBITED. If you are not the intended recipient, please
contact the
> sender by email and delete all copies; your cooperation in this regard
is
> appreciated.
> 
> _______________________________________________
> 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