My .png images show up im Qt Creator and also when i build my project in both debug and release situations. When I try to deploy my exe and run it my images don't show up.
My .pro file:
QT += core gui multimedia multimediawidgets
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = WinSim
TEMPLATE = app
DEFINES += QT_DEPRECATED_WARNINGS
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
RESOURCES += \
resourcefile.qrc
win32:RC_ICONS += icons\uokicon.ico
My resource file:
icons/ico.png
icons/ppicon.png
icons/cricon.png
icons/bgim.png
icons/button.png
icons/startmenu.png
icons/power.png
icons/uokicon.ico
解决方案
All i needed to do was deploy my program with windeployqt. Thank you @eyllanesc for pointing that out !