Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Get Current Working Directory in Qt 4.8?

[Solved] Get Current Working Directory in Qt 4.8?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.7k Views
  • 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_codingC Offline
    CAD_codingC Offline
    CAD_coding
    wrote on last edited by
    #1

    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
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      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
      0
      • CAD_codingC Offline
        CAD_codingC Offline
        CAD_coding
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved