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]Using QFileDialog::getOpenFileName and QFileDialog::getSaveFileName, how to get cross platform root directory?
Qt 6.11 is out! See what's new in the release blog

[solved]Using QFileDialog::getOpenFileName and QFileDialog::getSaveFileName, how to get cross platform root directory?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.7k Views 1 Watching
  • 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.
  • P Offline
    P Offline
    pwnstar23
    wrote on last edited by
    #1

    I am using those two functions and they take in a directory that the dialog starts at, I just want to some how send in the root directory in a cross platform way?

    Other than that it's working fine. Thank you.

    1 Reply Last reply
    0
    • U Offline
      U Offline
      uranusjr
      wrote on last edited by
      #2

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

      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