Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    QFileDialog::getExistingDirectory show hidden?

    General and Desktop
    2
    2
    1298
    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.
    • M
      Moschops last edited by

      I'm using a QFileDialog::getExistingDirectory function call; I'd like to see hidden directories. Seems that there's no option for thnis static function to do that, and also no option to do so if I create my own QFileDialog (i.e. without the static function call).

      Trawling around, it seems that QT3 had a setShowHiddenFiles function that might have been useful, but I can't find how to do it using QT 4.8; does anyone know?

      1 Reply Last reply Reply Quote 0
      • dheerendra
        dheerendra Qt Champions 2022 last edited by

        See if this helps. Off-course it is not static function. You have to have object for this to work.

        <FileDialogObj>.setFilter(QDir.Hidden)

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

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