SV: add icons to project
Rolf Thunbo
rolft at stofanet.dk
Sun Dec 12 07:35:41 GMT 2004
Hi Andreas,
If you want to have a KDE icon on a button, simply use the methods from the KIconLoader class.
How to do this with a 16x16 size icon, is given in the sniplet below,
...
m_tagOptionsBtn = new QToolButton( btnBox, "tag options button" );
m_tagOptionsBtn->setPixmap( SmallIcon( "configure" ) );
I hope is helps.
--
Rolf Thunbo
-----Oprindelig meddelelse-----
Fra: kdevelop at kdevelop.org
Til: kdevelop at kdevelop.org <kdevelop at kdevelop.org>
Emne: add icons to project
Dato: 11-12-2004 17:31:13
> Hi,
>
> I have an dialog-only project here, which has a few buttons on it. I'd
> like to have icons from KDE (forward, backward and so on) on these
> buttons, but I have no idea on how to do this. All KDE-Apps I had a
> look into used the XML-UI stuff and KAction, but as I won't have a
> menu or toolbar I think that is not possible (or is it?), so how to
> get access to KDE-Icons of a specific size (I want to use 48x48
> regardless of any kde theme settings)?
>
> Andreas
>
> --
> Your lucky number has been disconnected.
>
> -
> to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
> unsubscribe »your-email-address«
>
>
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list