[Qt-jambi-interest] Adding resources from classpath in Eclipse
Eskil Abrahamsen Blomfeldt
eblomfel at trolltech.com
Wed Apr 9 09:21:47 CEST 2008
Hi, Markus.
Markus Walser wrote:
> Yesterday I tried the same under WinXP. There I could suddenly select
> my icons from the classpath.
> I had to wait a few seconds on the "Choose Resource" dialog. Then an
> animated image started rotating
> and the icons appeared.
>
> I commited the project and booted Linux. Opening the same project in
> Eclipse, there were no icons.
>
> Switching back to WinXP and starting the Project, there are icons in
> the running application, but in the
> Qt Designer Editor and the Qt Action Editor they are gone. Opening the
> jui
> (https://svn.origo.ethz.ch/energex/trunk/QTwikeAnalyzer/src/energex/gui/TwikeAnalyzer.jui)
>
> in a text editor, the icon path looks correct:
> "classpath:energex/gui/icons/document-open.png"
I have a few questions to help me narrow this down:
1. Which version of Qt Jambi are you using, and which version of Java
(on the failing platform in particular?)
2. Have you tried running the standalone Qt Jambi Designer (run the
designer.sh shell script in your Qt Jambi package) to see if the problem
is reproducable there?
3. Is the classpath set as an environment variable, or has your
resources been added to your project using the build path settings?
4. Is there anything special in the contents or the formatting of the
classpath?
5. Have you tried launching your application on Linux in the form when
it is loading icons through the classpath file engine? (i.e. with the
.jui file you produced on Windows which contains the
"classpath:energex/gui/icons/document-open.png" path?) Does it correctly
load the icons then (hence: is it only in the resource browser in Qt
Jambi Designer the problem occurs?)
-- Eskil
More information about the Qt-jambi-interest
mailing list