My icons will hide after run app which i place on form design.
Im use QT 4.8.4 configure with such keys -release -static -opensource -qt-libpng -qt-libjpeg
Why this is happ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Did you make a resource (QRC) file? If not, the icons will show up in the creator, but not in the final compiled executable. The relative path to your icons are differ when running your applications because then the starting point of relative paths are the directory containing the exe.
Try to use Qt resource system: http://doc.qt.nokia.com/4.0/resources.html
[EDITED]
You must link the imageformat plugins statically to your application too (they cannot be loaded dynamically during runtime as with the shared lib version). See developer.qt.nokia.com/doc/qt-4.8/… for the details, please. The actual set of imageformat plugins to link depends on your icons and other graphics you use. qt-project.org/forums/viewthread/13367