def imageSupportByQt(path): imageType = imghdr.what(path) if imageType is not None: return imageType.lower() in QTSUPPORTEDIMAGES return False