Show images in .qml file that used by .cpp file



  • I just wanna ensure about images file that used in .qml file (this .qml file is used by .cpp file).
    I had try use image file that have extension .jpg, but it's not appear in the application. So I changed it to .png and the image appeared.
    So, is it right if it's best when we use .png image file in .qml file ?



  • That depends on your installation.
    AFAIK png support is build in in Qt. for jpg - support you have to use the imageformats plugins.



  • How can I get imageformats plugins?



  • Build it yourself. Check out the output of:

    @
    configure -help
    @

    to see what options the Qt configure tool supports.


Log in to reply
 

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