Yeah, assigning a pixmap to another pixmap is the result of having tried a bunch of different things and that just kinda hung on for a bit. I believe I have tried your suggestion (note the commented out sections). Seeing as how I had read that a static pixmap might help, I have also tried making the pixmap static within the function that I'm trying to load it in using the following lines of code...
Qt Code:
QPixmap static rangePic; if(!rangePic.load(sRangeFileNm)) qDebug() << "Failed to load the image";To copy to clipboard, switch view to plain text mode
In any event, I am running it in a debugger, and it blows up at whatever line that has the load statement in it. The code never has the opportunity to reach the qDebug() statement. The "locals and expressions" window in the debugger, shows that rangePic (the name of the pixmap), has a size of 2000 x 2000 which is the size of the image I'm trying to load. So I am assuming that the image is at least getting loaded, and that the problem occurs at some point between the load and the qDebug() statement. That would indicate that the error doesn't occur at one of my lines of code, so you can see why I'm tempted to say that it's not a problem with what I've written. However, my experience with SIGSEGV errors is that the problem could be in the code at an earlier point than where the error is indicated. I'm still unsure what is causing it though.
Bookmarks