Results 1 to 2 of 2

Thread: static library - embedded resourses

  1. #1
    Join Date
    Jan 2006
    Posts
    70
    Thanks
    13
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default static library - embedded resourses

    I've created a custom widget using the shared Qt4.2.2 libraries.

    The .png files that I used for icon images were added to a .qrc file and referenced in my .pro file under RESOURSES=

    I created a stub main and tested the widget, all looks great.

    Then I removed main and compiled this custom widget into a static lib file so i can use the widget in multiple projects without having source all over the place.

    When one of the other projects uses the custom widget the icons don't show up. The widget works as expected but no embedded images.

    Any ideas?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: static library - embedded resourses


Similar Threads

  1. Generating a static and dynamic library
    By elcuco in forum Qt Programming
    Replies: 3
    Last Post: 20th August 2011, 11:46
  2. Wrap a static QT library inside an XPCOM component ?
    By Paul_Xul in forum Qt Programming
    Replies: 2
    Last Post: 3rd August 2010, 07:16
  3. Replies: 16
    Last Post: 23rd May 2008, 10:12
  4. Win32 qmake: building a static library
    By Amanda in forum Qt Programming
    Replies: 5
    Last Post: 8th November 2006, 19:32
  5. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 08:52

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.