Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

application segfaults when assigning pixmap for Label

$
0
0
i am writing a qt4 gui application which has the following: -a main window with a widget which will hold: -an ogre instance (that is not important now, it is left empty) -a dockwidget with 2 buttons: one will cause the rendering of an image and show a dialog window, the other button just shows/hides the dialog window -a dialog window to show the image (i have read somewhere that i should just put a label and use setpixmap to assign a pixmat to it) here are my sources: http://pastebin.com/HXkT3Jut here are the ui files: http://pastebin.com/0TKKDziv the segfault happens at this line: raytracerRenderDialog->renderedImageContainer->setPixmap(QPixmap::fromImage(renderedImage)); a few notes: -i know that the way i implemented on_actionShow_render_triggered and on_actionRender_triggered is not the correct way, it is just temporary to see how it works -the application flow is like this: press render button -> generate raw image pixels -> show generated image in dialog

Viewing all articles
Browse latest Browse all 13965

Trending Articles