PDA

View Full Version : Problem with Icon and Plist



guidupas
30th June 2014, 17:18
Hello all!

I am having a problem with Icon and Plist in Mac

When I use just the icon in .pro my app shows the icon normally


#-------------------------------------------------
#
# Project created by QtCreator 2013-07-17T11:28:39
#
#-------------------------------------------------

QT += core gui
QT += xml
QT += printsupport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = SwotGut
TEMPLATE = app


SOURCES += main.cpp\
mainwindow.cpp \
spinboxdelegate.cpp \
desabilitaselecaodelegate.cpp

HEADERS += mainwindow.h \
spinboxdelegate.h \
desabilitaselecaodelegate.h

FORMS += mainwindow.ui

RESOURCES += \
icones.qrc

macx{
ICON = icone.icns
}


But when I define the Plist file, the icon does not appear when I run the app


#-------------------------------------------------
#
# Project created by QtCreator 2013-07-17T11:28:39
#
#-------------------------------------------------

QT += core gui
QT += xml
QT += printsupport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = SwotGut
TEMPLATE = app


SOURCES += main.cpp\
mainwindow.cpp \
spinboxdelegate.cpp \
desabilitaselecaodelegate.cpp

HEADERS += mainwindow.h \
spinboxdelegate.h \
desabilitaselecaodelegate.h

FORMS += mainwindow.ui

RESOURCES += \
icones.qrc

macx{
QMAKE_INFO_PLIST = SwotGut.plist
ICON = icone.icns
}

guidupas
1st July 2014, 00:38
Solved. I changed the icon name in plist archive.