Qt Resources or Directory Structure for icons?

Thiago Macieira thiago at macieira.org
Fri Apr 12 13:19:00 PDT 2013


On sexta-feira, 12 de abril de 2013 13.12.43, Tomaz Canabrava wrote:
> 1 - run rcc on `resources.qrc` ( rcc resources.qrc -o resources.cpp )
> 2 - compile the result ( resources.o )
> 3 - add it to the list of compiled things.


Add to the top of the Makefile:

RESOURCES = resources.qrc

Add further down, where the object list is defined:

OBJS = [what's already there]  $(RESOURCES:.qrc=.qrc.o)

And close to the moc/uic stuff:

%.qrc.o: %.qrc
	$(RCC) -o $@ $<

BTW, note that the Gtk code you're looking at replacing is requesting if 
there's an icon from the system theme first. You should try QIcon::fromTheme 
first.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130412/04d9c50f/attachment.sig>


More information about the subsurface mailing list