Struct qt_gui::q_image_reader::ImageReaderError
source · pub struct ImageReaderError(/* private fields */);
Expand description
This enum describes the different types of errors that can occur when reading images with QImageReader.
C++ enum: QImageReader::ImageReaderError
.
This enum describes the different types of errors that can occur when reading images with QImageReader.
Implementations§
source§impl ImageReaderError
impl ImageReaderError
sourcepub const UnknownError: ImageReaderError = _
pub const UnknownError: ImageReaderError = _
An unknown error occurred. If you get this value after calling read(), it is most likely caused by a bug in QImageReader. (C++ enum variant: UnknownError = 0
)
sourcepub const FileNotFoundError: ImageReaderError = _
pub const FileNotFoundError: ImageReaderError = _
QImageReader was used with a file name, but not file was found with that name. This can also happen if the file name contained no extension, and the file with the correct extension is not supported by Qt. (C++ enum variant: FileNotFoundError = 1
)
sourcepub const DeviceError: ImageReaderError = _
pub const DeviceError: ImageReaderError = _
QImageReader encountered a device error when reading the image. You can consult your particular device for more details on what went wrong. (C++ enum variant: DeviceError = 2
)
sourcepub const UnsupportedFormatError: ImageReaderError = _
pub const UnsupportedFormatError: ImageReaderError = _
Qt does not support the requested image format. (C++ enum variant: UnsupportedFormatError = 3
)
sourcepub const InvalidDataError: ImageReaderError = _
pub const InvalidDataError: ImageReaderError = _
The image data was invalid, and QImageReader was unable to read an image from it. The can happen if the image file is damaged. (C++ enum variant: InvalidDataError = 4
)
Trait Implementations§
source§impl Clone for ImageReaderError
impl Clone for ImageReaderError
source§fn clone(&self) -> ImageReaderError
fn clone(&self) -> ImageReaderError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImageReaderError
impl Debug for ImageReaderError
source§impl From<ImageReaderError> for c_int
impl From<ImageReaderError> for c_int
source§fn from(value: ImageReaderError) -> Self
fn from(value: ImageReaderError) -> Self
source§impl From<i32> for ImageReaderError
impl From<i32> for ImageReaderError
source§impl PartialEq for ImageReaderError
impl PartialEq for ImageReaderError
source§fn eq(&self, other: &ImageReaderError) -> bool
fn eq(&self, other: &ImageReaderError) -> bool
self
and other
values to be equal, and is used
by ==
.