Deploying image



  • Hi, I have set a picture using Label. I have done it through the automatic method at QLabel Property (in Qt´s design). The picture and the executable are in the same directory as well as the dll`s and the plugin subdirectories, such as "imageformats" and "platforms". Under Qt everything works perfectly, but when trying to run the executable the picture doesn't come up. Could someone tell me what I am doing wrong?, Tks.



  • I guess it depends on how you are identifying the picture (what path you are using).

    Look into using the qt resource system instead: less ways for things to go wrong.



  • Hi Andre, I used the qt resource system and it worked! Tks


Log in to reply
 

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