Results 1 to 6 of 6

Thread: [Solved] wrong working directory

  1. #1
    Join Date
    Apr 2010
    Posts
    17
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default [Solved] wrong working directory

    hi
    after build and run from within Qt Creator, my application doesnt update the changes i applied to forms UI . and currentPath always return "/home/user/Document".
    what should i alter?
    Last edited by rosenth; 15th October 2010 at 11:51.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: wrong working directory

    See [WIKI]Current working directory[/WIKI] for how to deal with currentPath.

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

    rosenth (15th October 2010)

  4. #3
    Join Date
    Apr 2010
    Posts
    17
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: wrong working directory

    there is still a problem. in directories other than source, ui changes doesnt affect. why?

  5. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: wrong working directory

    How does the pro file looks like?

  6. #5
    Join Date
    Apr 2010
    Posts
    17
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: [Solved] wrong working directory

    Qt Code:
    1. TEMPLATE = app
    2. TARGET =
    3. DEPENDPATH += .
    4. INCLUDEPATH += .
    5. QT += sql \
    6. script
    7.  
    8. # Input
    9. HEADERS += connection.h \
    10. ....
    11. FORMS += dlg_account.ui \
    12. ...
    13. SOURCES += dlg_account.cpp \
    14. ...
    15. RESOURCES += resources.qrc
    16. ...
    To copy to clipboard, switch view to plain text mode 

  7. #6
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: [Solved] wrong working directory

    To get you right: dlg_account.ui don't get recompiled when you update it?

  8. The following user says thank you to Lykurg for this useful post:

    rosenth (15th October 2010)

Similar Threads

  1. QProcess - Working directory problem
    By jomarin in forum Qt Programming
    Replies: 4
    Last Post: 27th November 2008, 16:26
  2. Set Working Directory in VS
    By Lele in forum Qt Programming
    Replies: 1
    Last Post: 20th February 2008, 17:03
  3. Don't want QTextBrowser to look in working directory
    By magland in forum Qt Programming
    Replies: 1
    Last Post: 20th October 2007, 23:14
  4. setting working directory for current process
    By mule in forum Qt Programming
    Replies: 1
    Last Post: 8th October 2007, 13:54
  5. QT Service and working directory
    By Lele in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2006, 11:46

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.