Setting application icon
-
How are you everyone ,I have been try to set icon for my application by following what is the qt documentation but am having the error what can the problem and its solution ?below is my code and the error.
QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++11 # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ main.cpp \ mainwindow.cpp HEADERS += \ mainwindow.h FORMS += \ mainwindow.ui # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target RESOURCES += \ RISOSI.qrc RC_ICONS = school(1)(1).ico
(
image url)
-
@GREYON
Hi. I don't think what you show in the.pro
file will tell us/you what the issue is. (Except that [to me]school(1)(1).ico
is a rather odd name with the parentheses in it, but that may not be relevant.)If that message with a filename followed by
Error 1
ismake
reporting the Linuxerrno
upon trying to access (presumably write to)debug/APPCON_resource_res.o
, that would be anEPERM
"Operation not permitted" error. If that file exists, are you able to overwrite/delete it? If it does not exist, are you able to create it (e.g. withtouch
)? Try deleting all the files indebug/
are rebuild from scratch?