<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Bitstream Vera Sans'; font-size:12pt; font-weight:400; font-style:normal;">On Monday 08 December 2008, David Baron wrote:<br>
> On Monday 08 December 2008 21:33:21 David Baron wrote:<br>
> > On Monday 08 December 2008 19:04:17 Aaron J. Seigo wrote:<br>
> > > > > > Big outstanding issue is getting icons into the UI.<br>
> > > > ><br>
> > > > > use KIcon.<br>
> > > ><br>
> > > > Get the same crashes. KIcon will give me more flexibility and less<br>
> > > > restrictions tied to resource folders, but it has to work first :-)<br>
> > ><br>
> > > what are the crashes? you need to give us backtraces and example code<br>
> > > otherwise it's really hard to know what's going on ...<br>
> ><br>
> > The code is a simple pushButtonX->setIcon( KIcon( "nice-oxygen-icon");<br>
> ><br>
> > No useable backtraces. The example I posted was not from this crash.<br>
><br>
> and of course, one better make sure that the set_ui (generated by the qt<br>
> designer) is called BEFORE trying to use any of those widgets, huh :-)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>hehe. yes, that's usually a good idea ;)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>> So I can use icons by name rather than by file-path/resource-path.<br>
> How might I do the same thing with the applet::svg images?<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>you can install the svg using something like this in your CMakeLists.txt file:<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>install( FILES <list of svgs> DESTINATION ${DATA_INSTALL_DIR}/desktoptheme/default/<pluginname> )<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>and then you refer to them as "<pluginname>/<svgname>", leaving off the .svg or .svgz extension.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>-- <br>
Aaron J. Seigo<br>
humru othro a kohnu se<br>
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>KDE core developer sponsored by Qt Software<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p></body></html>