Results 1 to 2 of 2

Thread: Cannot change to working directory

  1. #1
    Join Date
    Dec 2009
    Posts
    22
    Thanks
    3
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Cannot change to working directory

    Hi All,
    I'm writing code to control a simple socket server. So I click to set up a console project and do a simple qDebug hello world. However when I try to run it just appears to drop out. I've tried setting a break point, this just drops out without reaching the breakpoint. But this is really mad, if I cd into the directory and try the exe it appears to work. Can someone advise please, I really don't seem to be able to get this to run or even debug through qt?
    Thanks in advance.

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

    Default Re: Cannot change to working directory

    It seems your code is assuming that something can be found in the current working directory and fails poorly when it is not found. The information you have provided does not let us say much more.

Similar Threads

  1. Problems with the current working directory.
    By aarelovich in forum Qt Programming
    Replies: 1
    Last Post: 19th May 2011, 20:41
  2. QProcess - Working directory problem
    By jomarin in forum Qt Programming
    Replies: 4
    Last Post: 27th November 2008, 17:26
  3. Set Working Directory in VS
    By Lele in forum Qt Programming
    Replies: 1
    Last Post: 20th February 2008, 18:03
  4. Don't want QTextBrowser to look in working directory
    By magland in forum Qt Programming
    Replies: 1
    Last Post: 21st October 2007, 00:14
  5. QT Service and working directory
    By Lele in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2006, 12: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.