Le 18/05/2015 17:06, Stephan Witt a écrit :
I'm unsure - with the previous code returning a pixmap missing pixmaps are 
ignored silently.
With the change proposed by Enrico it is easy to add a error or warning message.
The price is the change of many files containing a call to the getPixmap() 
method.

Is there anyone having an opinion about this topic?

Is there a way to convey an error condition, like returning a bad/empty pixmap?

Are QPixmaps really expensive to copy? I thought the Qt objects were often reference counted, contrary to -- say-- stl vectors.

JMarc

Reply via email to