Re: [Qt-creator] Accessing resources (images) of other plugins
On 22.06.2010 15:32, ext Liebe Markus (RtP2/TEF72) wrote: > In my case I want to use the compile_warning.png and compile_error.png of the > ProjectExplorer Hi Markus! You already seem to be using the taskwindow... that has a method to get the icons for any TaskType (see taskTypeIcon(int)). I would recommend using that instead of hardcoding them. Best Regards, Tobias -- Tobias Hunger Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Accessing resources (images) of other plugins
> That should work. > > We do that with quite a few resources. E.g. search for > ":/core/" in creator. Tried again...now it works.. :) Most likely I misspelled something. Regards, Markus ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Accessing resources (images) of other plugins
> I tried to use the path to the ressource like this: > ":/projectexplorer/images/compile_warning.png" Which did not work. Which > does not really surprise me, because the containing .qrc file is not > referenced in the .pro file of my plugin. That should work. We do that with quite a few resources. E.g. search for ":/core/" in creator. daniel ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
[Qt-creator] Accessing resources (images) of other plugins
Hi there, Is it possible to use images that are part of the resources of another plugin? In my case I want to use the compile_warning.png and compile_error.png of the ProjectExplorer I tried to use the path to the ressource like this: ":/projectexplorer/images/compile_warning.png" Which did not work. Which does not really surprise me, because the containing .qrc file is not referenced in the .pro file of my plugin. Is there another way to reuse ressources throughout QtCreator? Regards, Markus ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator