The composition mode defines how new drawings are merged with previous drawings in the image. Composition modes are representing as a string containing the name of the composition mode without the prefix QPainter::. The default composition mode is "SourceOver".

Not all devices support complex alpha-blending composition modes. In particular printers often support only the default composition mode. When a composition mode is not supported, the Qt library prints a warning.