[Qt-interest] segmentation fault confusion

Avishek_Sharma Avishek_Sharma at satyam.com
Thu Feb 12 06:09:39 CET 2009


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.




More information about the Qt-interest-old mailing list