Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. file navigation
    Log in to post
    • All categories
    • A

      Unsolved QFileDialog: Select file only from a pre-defined directory
      General and Desktop • qt5.5 file dialog file navigation • • Ankit.Jain

      2
      0
      Votes
      2
      Posts
      987
      Views

      Chris Hennes

      I would be inclined to not use QFileDialog for that task -- it's designed to look and function the way users expect a file selection dialog to work, which includes navigation. I have a similar use-case in a program I'm currently working on, and my solution was to create a very simple custom dialog that simply presents a list of the files they are allowed to select from. It's very easy to get that list from a QDir and drop that QStringList into a QListWidget.

    • A

      [SOLVED] Qt Creator : How to list files and directories to Tree widget which placed in a stacked widget page
      Mobile and Embedded • qtcreator qt5.2.1 qtreewidget directory file navigation • • Ajith_P_V

      4
      0
      Votes
      4
      Posts
      5162
      Views

      A

      @SGaist Thank you once again!
      Now, I can manage to display the folder list inside the stacked widget page using QTreeView + QFileSystemModel combo!

    • S

      Qt Creator "Follow Symbol Under Cursor"
      Tools • qt creator file navigation • • stoptherock1

      3
      0
      Votes
      3
      Posts
      3779
      Views

      S

      @Jeroentjehome
      Thanks for the reply. It fixes the problem, for sure.
      But in the other hand such feature would be very useful.
      I will create a feature request and post it here later, if somebody else is also interested.