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] QFileDialog::getExistingDirectory
Forum Updated to NodeBB v4.3 + New Features

[Solved] QFileDialog::getExistingDirectory

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.8k 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.
  • J Offline
    J Offline
    jocala
    wrote on last edited by
    #1

    I'm using QFileDialog::getExistingDirectory; With OS X the "new folder" button is grayed-out. Is there a way to enable it so along with selecting a dir, a new one can be created as well?

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Not sure why this grayed out. You can use QFileDialog object itself and open the directory. It will show the tool button on the right side. I have not tried on OS X .

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • A Offline
        A Offline
        ankursaxena
        wrote on last edited by
        #3

        As name ( QFileDialog::getExistingDirectory) is suggesting , it will show all existing directory only.

        I think thats why “new folder” button is grayed-out.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jocala
          wrote on last edited by
          #4

          [quote author="Dheerendra" date="1403590991"]Not sure why this grayed out. You can use QFileDialog object itself and open the directory. It will show the tool button on the right side. I have not tried on OS X .[/quote]

          My error. I was opening the QFileDialog in a directory w/o write privs. As soon as that was corrected the tool button was active.

          1 Reply Last reply
          0
          • dheerendraD Offline
            dheerendraD Offline
            dheerendra
            Qt Champions 2022
            wrote on last edited by
            #5

            Cool. You can put this issue to "Solved" state.

            Dheerendra
            @Community Service
            Certified Qt Specialist
            http://www.pthinks.com

            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