Expression qimage:depth() returns the depth of the image qimage. A depth of 1 indicates a bitonal image. A depth of 24 or 32 indicates a true color image.
qimage:depth()
qimage