Results 1 to 2 of 2

Thread: Qt Library Project Resources

  1. #1
    Join Date
    Apr 2010
    Posts
    152
    Thanks
    5
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt Library Project Resources

    Hey,

    Is there a way to add a Qt resource file with images embedded in a Qt Library project created with Visual Studio Qt Add-In?
    I'm looking to have a main application that loads libraries (extensions) with their resources/icons to be used in the main application. The solution should be portable. for example do the same thing on Linux or Apple environment.

    Thanks.

  2. #2
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: Qt Library Project Resources

    Yes, it sounds like you want to use a Qt Resource file (qrc file type). You can add images, files, strings, etc into the resource file which is embedded as part of your library or executable, then retrieve them at run time.

    Edit: I don't use Windows or the Visual Studio add-in, so perhaps my answer isn't an option when using the Visual Studio add-in.

  3. The following user says thank you to jefftee for this useful post:

    qtoptus (16th March 2015)

Similar Threads

  1. Replies: 4
    Last Post: 23rd October 2013, 15:44
  2. load image from resources in library
    By stevocz in forum Newbie
    Replies: 0
    Last Post: 11th July 2013, 09:21
  3. Replies: 4
    Last Post: 18th December 2009, 18:55
  4. Replies: 2
    Last Post: 17th July 2007, 17:05
  5. Compiled resources in shared library
    By magland in forum Qt Programming
    Replies: 1
    Last Post: 21st June 2007, 04:57

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.