I have come across a scenario where I have to load the same pixmap / same QImage onto two different widgets ( belonging to the same mainwindow ).
First time I load a pixmap 1 on widget 1 , it works fine.
Second time if I try to load the same pixmap ( or QImage ) on another widget ( say widget 2), the code just throws some error ( saying memory full ) or does not load the pixmap on widget 2.
Ultimately I end up duplicating the png files i use to load the pixmaps, giving them distinct file names. Is there a solution to avoid this loading problem so that the I can use the same png file to be loaded any number of times ?
Bookmarks