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

None Re: Adding application icon to Qt GUI 

Forum: (Graphical) User Interfaces
Re: Question Adding application icon to Qt GUI (Mojca Miklavec)
Date: 06 Aug, 2013
From: Garnier Laurent <Garnier Laurent>

Hi, 

Le 9 juil. 2013 à 19:20, Mojca Miklavec <mojca.miklavec.lists@gmail.com> a écrit :

> 
> *** Discussion title: (Graphical) User Interfaces
> 
> 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.
> 

I think that you have already found the solution, but for all users, if you want to change the main windows icon for a Qt application, all is explain here :
http://doc.qt.digia.com/4.7/appicon.html

Cheers,
Laurent



> 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
> 
> -------------------------------------------------------------
> Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at: 
> http://hypernews.slac.stanford.edu/HyperNews/geant4/get/userinterface/99.html 

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

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: "Re: 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 ]