Results 1 to 3 of 3

Thread: Text Files

  1. #1
    Join Date
    Feb 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Text Files

    Hi, I have a text file i wish to add to my QT4 project, how do i do this?
    Thanks

  2. #2
    Join Date
    Apr 2008
    Posts
    104
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 7 Times in 7 Posts

    Default Re: Text Files

    Use the resources. Make your text file available to the program using the resourse file.

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Text Files

    You can add the file to the OTHER_FILES (undocumented?) variable in your PRO file. It will have no effect on building the project but if you use Qt Creator the file will appear in the IDE project browser.

Similar Threads

  1. Is ther any way to compare two text files
    By madhukiranmp in forum Newbie
    Replies: 5
    Last Post: 28th April 2015, 15:13
  2. Extracting text from files (AKA I'm a newbie!)
    By mike phillips in forum Newbie
    Replies: 16
    Last Post: 30th January 2009, 18:27
  3. problem with reading text files
    By Axsis in forum Newbie
    Replies: 1
    Last Post: 25th April 2008, 13:29
  4. how to save sequences of text files and sound files
    By nagpalma in forum Qt Programming
    Replies: 8
    Last Post: 3rd July 2007, 01:06
  5. Parsing of Text files in Qt
    By shailesh in forum Qt Programming
    Replies: 3
    Last Post: 21st April 2006, 16:35

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.