Results 1 to 2 of 2

Thread: segmentation fault for no apparent reason

  1. #1
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Thanks
    25
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Red face segmentation fault for no apparent reason

    Hi,
    am making changes to a photogallery which was designed on Qt 3.3

    All that I changed in the form till now(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-
    Qt Code:
    1. rotatepic->setPaletteBackgroundColor(QColor(170,255,0));
    To copy to clipboard, switch view to plain text mode 

    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 have buttons like Next,Previous,Slideshow etc....in whichever button's slot I add the line of code mentioned above,I get a segmentation fault corresponding to that button.If i comment out that line,things work fine.

    I can't figure out what's wrong.
    Please advice.

    Thanks in advance.
    If everything seems to be going well, you have obviously overlooked something.

  2. #2
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Thanks
    25
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Working now

    Hi,
    it's working now.I don't understand why it was showing segmentation fault earlier but,it's working fine for now.
    If everything seems to be going well, you have obviously overlooked something.

Similar Threads

  1. segmentation fault on mouse hover
    By elessaar in forum Qt Programming
    Replies: 6
    Last Post: 26th August 2008, 13:51
  2. segmentation fault
    By uchennaanyanwu in forum Newbie
    Replies: 3
    Last Post: 31st July 2008, 17:52
  3. Process aborted. Segmentation fault
    By Pragya in forum Qt Programming
    Replies: 3
    Last Post: 30th May 2007, 09:12
  4. Segmentation fault running any QT4 executables
    By jellis in forum Installation and Deployment
    Replies: 7
    Last Post: 19th May 2007, 17:35
  5. Icons missing => segmentation fault
    By antonio.r.tome in forum Qt Programming
    Replies: 4
    Last Post: 8th March 2006, 17:30

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.