Message: Adding application icon to Qt GUI Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Adding application icon to Qt GUI 

Forum: (Graphical) User Interfaces
Date: 09 Jul, 2013
From: Mojca Miklavec <Mojca Miklavec>

I'm trying to package Gate for MacPorts and would like to add an icon for the applications.

This can be done with a Qt function (http://qt-project.org/doc/qt-4.8/qwidget.html#windowIcon-prop)

    void setWindowIcon ( const QIcon & icon )

This could easily be achieved somewhere in constructor G4UIQt::G4UIQt, close to, say,

    fMainWindow->setWindowTitle(QFileInfo( QCoreApplication::applicationFilePath() ).fileName());
    fMainWindow->setWindowIcon(...);

which sets the name.

But I don't know how I could modify Gate sources (or my own application) without patching Geant4 to be able to add the icon.

Related to that I would like to add the functionality of this patch: http://suhard.fr/gate/patches/geant4-qt-open-macro.patch

which adds a nice "Open macro" functionality, but again I'm not sure how to accomplish that without modifying Geant4 itself.

Thank you, Mojca

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Adding application icon to Qt GUI   (John Allison - 09 Jul, 2013)
1 More: Re: Adding application icon to Qt GUI   (Mojca Miklavec - 10 Jul, 2013)
1 None: Re: Adding application icon to Qt GUI   (John Allison - 10 Jul, 2013)
2 None: Re: Adding application icon to Qt GUI   (garnier - 30 Jul, 2013)
... 2 Message(s)
2 None: Re: Adding application icon to Qt GUI   (garnier - 06 Aug, 2013)
1 Feedback: Re: Adding application icon to Qt GUI   (Mojca Miklavec - 07 Aug, 2013)
(_ None: Re: Adding application icon to Qt GUI   (garnier - 07 Aug, 2013)
 Add Message Add Message
to: "Adding application icon to Qt GUI"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]