Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Problem with Icon and Plist
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Problem with Icon and Plist

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 916 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • guidupasG Offline
    guidupasG Offline
    guidupas
    wrote on last edited by
    #1

    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
    }
    @

    Att.
    Guilherme Cortada Dupas

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Are you defining CFBundleIconFile in your plist ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ambershark
        wrote on last edited by
        #3

        Did you make sure to put icone.icns in the Resources folder in your bundle? And did you rename your plist to Info.plist and place it in the Contents folder of the bundle?

        I.e.

        @
        SwotGot
        -> Contents
        -> Resources
        -> icone.icns
        -> Info.plist
        @

        My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

        1 Reply Last reply
        0
        • guidupasG Offline
          guidupasG Offline
          guidupas
          wrote on last edited by
          #4

          Yes. I figured it out. I changed the icon name in plist archive.

          Thanks.

          Att.
          Guilherme Cortada Dupas

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved