Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    [Solved] Get Current Working Directory in Qt 4.8?

    General and Desktop
    2
    3
    1475
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CAD_coding
      CAD_coding last edited by

      Hi,
      I want to have the path of current working directory.
      C++ provides functionality for the same, but it is platform & compiler dependent. See "here":http://stackoverflow.com/questions/143174/how-do-i-get-the-directory-that-a-program-is-running-from.
      So I want to know whether Qt has a simple function which gives me the ABSOLUTE PATH of CWD?

      1 Reply Last reply Reply Quote 0
      • K
        koahnig last edited by

        Checkout "QDir::current()":http://qt-project.org/doc/qt-4.8/qdir.html#current

        Vote the answer(s) that helped you to solve your issue(s)

        1 Reply Last reply Reply Quote 0
        • CAD_coding
          CAD_coding last edited by

          Thanks a lot!
          Saved a lot of hard work & headache.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post