Results 1 to 3 of 3

Thread: Write resource file

  1. #1
    Join Date
    Jul 2011
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Write resource file

    Does anyone know if the resource files can be written?
    I'm using txt files as resource and i can read them but can't write.

    There are no permission restrictions.

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

    Default Re: Write resource file

    Resource files can't be written to.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    Merylin (12th September 2011)

  4. #3
    Join Date
    Aug 2010
    Posts
    99
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Write resource file

    Qt resource files (.qrc) are compiled into the executable, so they are not writeable. If you want writeable resources, then just use plain old files on disk. Put them in a user directory (see QDesktopServices to obtain all standard user locations.)
    Last edited by xtal256; 12th September 2011 at 23:46. Reason: updated contents
    [Window Detective] - Windows UI spy utility
    [War Thunder]

Similar Threads

  1. Can be possible to write data into Qt resource item?
    By tonnot in forum Qt Programming
    Replies: 2
    Last Post: 10th February 2011, 23:47
  2. Replies: 2
    Last Post: 2nd November 2010, 05:15
  3. resource file
    By kavinsiva in forum Newbie
    Replies: 4
    Last Post: 18th August 2009, 22:28
  4. Resource file in Qt4.4.0
    By jml in forum Qt Tools
    Replies: 0
    Last Post: 6th May 2008, 18:01
  5. Resource file in a lib
    By Rodrigo in forum Qt Programming
    Replies: 4
    Last Post: 25th June 2007, 15:22

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.