Results 1 to 5 of 5

Thread: Resource file in a lib

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    128
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Resource file in a lib

    Quote Originally Posted by Rodrigo View Post
    so, i'd like to know if there is a way to associate a .qrc file in my plugins (lib)
    You do it the same way as you would in your app. (i.e. via the RESOURCES qmake variable).

    But: read the the Resource System part of the Qt documentation; especially the last paragraph.
    If there is a possibility that your library is getting linked statically, you must use Q_INIT_RESOURCE.

  2. The following user says thank you to camel for this useful post:

    Rodrigo (25th June 2007)

  3. #2
    Join Date
    May 2007
    Location
    Brazil
    Posts
    9
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Talking Re: Resource file in a lib

    I solved my problem, i forgot to put in the .qrc file the following line:

    Resource += plugin

    when i inserted that, it worked perfectly!

    thanks

Similar Threads

  1. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  2. Replies: 2
    Last Post: 8th March 2007, 21:47
  3. Sending Binary File with QFTP
    By nbkhwjm in forum Newbie
    Replies: 2
    Last Post: 7th March 2007, 18:10
  4. Resource Collection File maximux size
    By Lele in forum Qt Programming
    Replies: 1
    Last Post: 9th August 2006, 10:41
  5. File permission QFile::WriteOther on Win Dos
    By patrik08 in forum Newbie
    Replies: 1
    Last Post: 13th June 2006, 14:16

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.