Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

use QImage::loadFromData load DDS file failed...how can i deal with a picture with rowPitch?



  • QImage::loadFromData failed...how can i deal with a picture with rowPitch?
    how can i set the int len param for this situation?



  • What version of Qt are you using? I think the DDS image plugin was added in 5.3. How are you calling QImage::loadFromData? If you're reading from a file, shouldn't you use QImage::load instead?



  • qt5.4.1, my DDS format is BC5, and it's cannot open with the qt plugin ...so i have to use other lib to open it and then copy the buffer to qt...


Log in to reply