DDS image file paint failed...use QPixmap open the image file, and then covert it to QIcon and paint.



  • DDS image file paint failed...use QPixmap open the image file, and then covert it to QIcon and paint.
    the code is like this:
    QPixmap pixmap("...imagePath...");
    QIcon icon = QIcon(pixmap);
    if ( !icon.isNull() )
    {
    icon.paint(......);
    }

    and the QPixmap is read success, because i got its resolution right.
    and the icon is always not Null...it do paint...but for some DDS file, it just paint a white image, or nothing at all....



  • and for the DDS file which paint into nothing...the ImageMagic Display also display nothing...
    but Photoshop Do Not show Nothing....



  • the files all have MipMap...but some are right, however some are wrong....


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.