Results 1 to 3 of 3

Thread: suggestion for qrc file

  1. #1
    Join Date
    Jan 2006
    Posts
    122
    Thanks
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default suggestion for qrc file

    Hi all,
    I'd like to know your opinion on qrc files and static linking resource, is it good to have only one qrc for all the reources or is better to split in many qrc(if possible).
    I mean, now I have a generated qrc_application.cpp around 5Mb, I'm afraid having large could reduce performances or may result in some problems in the Visual Studio with so large cpp.
    thanks for any help
    Bye

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: suggestion for qrc file

    It's up to you to decide how to split your resources. If MSVC has trouble operating on large files, you obviously have to split it into smaller ones. On the other hand there is no advantage of splitting resources into smaller chunks if they end up in the same binary. It would only make sense if you wanted some of the data be available in one binary (be it an executable or a shared object) and the rest in the other/both.

  3. #3
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: suggestion for qrc file

    I had G++ "thrash" on me with a 10Mb resource C++ file. It's not a problem to have multiple resource files.

Similar Threads

  1. Draging a non-existing file to the Windows Desktop
    By klaus1111 in forum Qt Programming
    Replies: 13
    Last Post: 20th September 2007, 11:47
  2. SQLite-DB in a qrc file
    By Lykurg in forum Qt Programming
    Replies: 5
    Last Post: 31st July 2006, 19:24
  3. File permission QFile::WriteOther on Win Dos
    By patrik08 in forum Newbie
    Replies: 1
    Last Post: 13th June 2006, 14:16
  4. QHttp GET File & Password
    By patrik08 in forum Qt Programming
    Replies: 4
    Last Post: 11th June 2006, 13:04
  5. dialog box
    By Bahar in forum Qt Programming
    Replies: 3
    Last Post: 31st January 2006, 14: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.