Results 1 to 3 of 3

Thread: Using images as standalone files or not

  1. #1
    Join Date
    Dec 2007
    Posts
    33
    Thanks
    7
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Using images as standalone files or not

    Hello again,

    i am using 2 *.png files which are displayed in my application via QPixmap.

    My question:
    Is it possible to include those images into my application.exe ?
    Or am i forced to have them as sep. files ?

    I would prefer an inbuilt solution, as noone would be able to just replace the source-files.....which would result in a diffrent ui-view

    I guess you got my point.

    A keyword for that topic would be highly appreciated.
    Best regards in advance
    ape

    edit:
    Part 2:
    At the moment my *.exe needs 3 Qt dll-Files to work on a system without a preinstalled qt-environment. Basicly it would be great to have a solution to include those files too.

    I guess using an installer would be a solution but in best case i would just end with a single .exe file which contains everything.
    Last edited by ape; 19th December 2007 at 13:32. Reason: forgot part 2 of that question

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Using images as standalone files or not

    Question 1: see the Qt Resource system :http://doc.trolltech.com/4.3/resources.html
    Question 2: What about static linking?

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

    ape (19th December 2007)

  4. #3
    Join Date
    Dec 2007
    Posts
    33
    Thanks
    7
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Using images as standalone files or not

    Hi Marcel,

    regarding question 1:
    --
    Thank you very much. That hint was 1:1 what i was looking for.
    Works like a charme



    regarding question 2:
    --
    Actually i must admit i am not really sure what you mean with static linking.

    The app just works if i copy those 3 needed qt-dll's into the same folder/location then my *.exe is located. So i dont see a reason to link them in general.

    The idea was just similar to the images in question 1, but i guess i have to google for static linking in Qt related context.


    Thanks again
    ape

Similar Threads

  1. Replies: 5
    Last Post: 22nd September 2006, 08:04
  2. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 10:28

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.