Results 1 to 10 of 10

Thread: File path issue...

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2008
    Posts
    89
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default File path issue...

    Hi,

    I am really confused ..

    The problem is of relative fiile path... Please see attachmed image
    I want to read info.txt file in res folder. i have specifies the relative path as

    Qt Code:
    1. QFile file("res/info.txt")
    To copy to clipboard, switch view to plain text mode 

    it works fine if the exe is created at test.cpp level but if i create the exe at some other path
    the relative path to info.txt is disturbed. Now the file cannot be read....
    I need to make path relative to test.cpp not to the applcation exe.

    Please help.....

    GK
    Attached Images Attached Images

Similar Threads

  1. Re: Opening Project file Issue in Edyuk
    By philwinder in forum Qt-based Software
    Replies: 6
    Last Post: 5th May 2008, 20:49
  2. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  3. qt3 to qt4 - uic issue
    By hvengel in forum Qt Programming
    Replies: 10
    Last Post: 4th March 2007, 02:59
  4. Replies: 5
    Last Post: 22nd September 2006, 08:04
  5. Qt 3.3.4 -> Qt 4.1.2, moc file issue
    By philski in forum Qt Tools
    Replies: 1
    Last Post: 11th September 2006, 21:08

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.