[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: missing icons
From: |
Ben Abbott |
Subject: |
Re: missing icons |
Date: |
Sat, 05 Oct 2013 08:45:36 -0400 |
On Oct 5, 2013, at 5:33 AM, c. wrote:
> On 5 Oct 2013, at 01:34, Ben Abbott <address@hidden> wrote:
>
>> On Oct 4, 2013, at 4:49 PM, John W. Eaton wrote:
>>
>>> There seem to be many missing icons in the GUI. Can someone help me
>>> understand how Qt icons are supposed to work? For example, in the
>>> terminal_dock_widget constructor in
>>> libgui/src/terminal-dock-widget.cc, we currently have
>>>
>>> setWindowIcon (QIcon(":/actions/icons/logo.png"));
>>>
>>> I think this is supposed to refer to the Octave logo.png file in
>>> libgnu/src/icons/logo.png, but the terminal dock widget doesn't
>>> display any icon for the window icon position on my system.
>>>
>>> Similarly, the code that sets up the context menu that is defined for
>>> the terminal window in QTerminal.h appears to add icons to the menu
>>> but those are also not showing up on my system.
>>>
>>> Is it just me, or is this not working properly for others as well?
>>>
>>> What does /actions/ mean in the name that is passed to QIcon?
>>>
>>> jwe
>>
>> I don't understand how the icons work, but on MacOSX all the application's
>> icons work for me, but the icon on the dock looks to be defaulting to a
>> shell script icon. I've attached a png.
>>
>> Ben
>
> According to this page:
>
> http://qt-project.org/doc/qt-4.8/appicon.html
>
> application icons must be treated by a "platform-dependent technique"
> to have them show correctly on OSX.
>
> That page is for Qt 4.8 which is what I have:
>
> port list installed and qt*
> qt4-mac @4.8.5 aqua/qt4-mac
>
> I can't find a similar page for Qt 5 ...
>
> c.
Ok. That essentially means we'll have to construct a MacOSX app directory
structure and place the icon in the proper place. In the example at the link
below the application icon would be MyApp.app/Contents/Resources/MyApp.icns
https://trac.lcsr.jhu.edu/cisst/wiki/MacAppBundles
Ben
- Re: missing icons, (continued)
- Re: missing icons, Patrick Noffke, 2013/10/04
- Re: missing icons, Michael Goffioul, 2013/10/04
- Re: missing icons, Torsten, 2013/10/05
- Re: missing icons, Torsten, 2013/10/05
- Re: missing icons, John W. Eaton, 2013/10/05
- Re: missing icons, Patrick Noffke, 2013/10/07
- Re: missing icons, Michael Goffioul, 2013/10/07
- Re: missing icons, Patrick Noffke, 2013/10/07
Re: missing icons, Ben Abbott, 2013/10/04