Results 1 to 3 of 3

Thread: Avoiding unnecessary files and folder in Impelementation

  1. #1
    Join Date
    Jan 2008
    Location
    Finland /Pakistan
    Posts
    216
    Thanks
    20
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Avoiding unnecessary files and folder in Impelementation

    Hi
    I am using a QIcon function and it takes the icon from a folder called pics , in the coding i have fixed the location as 'c:\pics'..but if i gave my program to someone else then i only wanted to give the source files and project file ...i want to avoid giving the picture folder and other unneccesary make file...if the given info is ambigious pls do ask me and also ....HELP ME..!!

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Avoiding unnecessary files and folder in Impelementation

    Hi, either use QCoreApplication::applicationDirPath() to find the images or take a look at The Qt Resource System.
    J-P Nurmi

  3. #3
    Join Date
    Jan 2008
    Location
    Finland /Pakistan
    Posts
    216
    Thanks
    20
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Avoiding unnecessary files and folder in Impelementation

    yes,thanks.....QT's Resource Collection File (.qrc) is the solution ...

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.