Results 1 to 2 of 2

Thread: Problem with Icon and Plist

  1. #1
    Join Date
    Feb 2014
    Posts
    94
    Thanks
    5
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Problem with Icon and Plist

    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
    Qt Code:
    1. #-------------------------------------------------
    2. #
    3. # Project created by QtCreator 2013-07-17T11:28:39
    4. #
    5. #-------------------------------------------------
    6.  
    7. QT += core gui
    8. QT += xml
    9. QT += printsupport
    10.  
    11. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    12.  
    13. TARGET = SwotGut
    14. TEMPLATE = app
    15.  
    16.  
    17. SOURCES += main.cpp\
    18. mainwindow.cpp \
    19. spinboxdelegate.cpp \
    20. desabilitaselecaodelegate.cpp
    21.  
    22. HEADERS += mainwindow.h \
    23. spinboxdelegate.h \
    24. desabilitaselecaodelegate.h
    25.  
    26. FORMS += mainwindow.ui
    27.  
    28. RESOURCES += \
    29. icones.qrc
    30.  
    31. macx{
    32. ICON = icone.icns
    33. }
    To copy to clipboard, switch view to plain text mode 

    But when I define the Plist file, the icon does not appear when I run the app
    Qt Code:
    1. #-------------------------------------------------
    2. #
    3. # Project created by QtCreator 2013-07-17T11:28:39
    4. #
    5. #-------------------------------------------------
    6.  
    7. QT += core gui
    8. QT += xml
    9. QT += printsupport
    10.  
    11. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    12.  
    13. TARGET = SwotGut
    14. TEMPLATE = app
    15.  
    16.  
    17. SOURCES += main.cpp\
    18. mainwindow.cpp \
    19. spinboxdelegate.cpp \
    20. desabilitaselecaodelegate.cpp
    21.  
    22. HEADERS += mainwindow.h \
    23. spinboxdelegate.h \
    24. desabilitaselecaodelegate.h
    25.  
    26. FORMS += mainwindow.ui
    27.  
    28. RESOURCES += \
    29. icones.qrc
    30.  
    31. macx{
    32. QMAKE_INFO_PLIST = SwotGut.plist
    33. ICON = icone.icns
    34. }
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Feb 2014
    Posts
    94
    Thanks
    5
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Problem with Icon and Plist

    Solved. I changed the icon name in plist archive.

Similar Threads

  1. QList<int> ** Plist
    By tanuja in forum Qt Programming
    Replies: 3
    Last Post: 18th November 2010, 05:22
  2. Reading .plist files on Windows
    By alexivanov91 in forum Qt Programming
    Replies: 1
    Last Post: 24th September 2010, 11:07
  3. QSettings to read .plist on Mac
    By lemmiwinks in forum Qt Programming
    Replies: 1
    Last Post: 3rd February 2010, 22:13
  4. How to edit .plist file in mac
    By merry in forum Qt Programming
    Replies: 2
    Last Post: 15th December 2008, 14:32
  5. howto edit mac loginwindow.plist
    By giotto in forum Qt Programming
    Replies: 1
    Last Post: 8th February 2008, 13:53

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.