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. How to add a QListView to QFileDialog?

How to add a QListView to QFileDialog?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 454 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
    patrickkidd
    wrote on last edited by
    #1

    I want to add a checklist to the native save file dialog. Is this possible in Qt, or do I have to show a modal window with the list prior to using QFileDialog?

    https://alaskafamilysystems.com/

    JonBJ 1 Reply Last reply
    0
    • P patrickkidd

      I want to add a checklist to the native save file dialog. Is this possible in Qt, or do I have to show a modal window with the list prior to using QFileDialog?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @patrickkidd
      I hope I'm not speaking out of turn/rubbish, but the point of the Native File Dialog is that you cannot alter it? Would you consider using the Qt one? Not that I know how to do it (probably sub-classing) but I think that does allow alterations?

      P 1 Reply Last reply
      0
      • JonBJ JonB

        @patrickkidd
        I hope I'm not speaking out of turn/rubbish, but the point of the Native File Dialog is that you cannot alter it? Would you consider using the Qt one? Not that I know how to do it (probably sub-classing) but I think that does allow alterations?

        P Offline
        P Offline
        patrickkidd
        wrote on last edited by
        #3

        @JonB So far as I remember the Qt dialog does not use the native view and looks quite unclean. I have seen some apps that offer save options beyond file type, though it is possible that these interact with the native API directly.

        https://alaskafamilysystems.com/

        JonBJ 1 Reply Last reply
        0
        • P patrickkidd

          @JonB So far as I remember the Qt dialog does not use the native view and looks quite unclean. I have seen some apps that offer save options beyond file type, though it is possible that these interact with the native API directly.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

          @patrickkidd
          Yes, the Qt one looks a bit different.

          If you want to interact with the native one, then you become platform-specific (and you haven't mentioned which platform(s) you target). I don't know how/think that Qt gives you access to the native dialog.

          But if you are Windows look at, say, https://www.qtcentre.org/threads/21337-Native-QFileDialog-position-under-Win32. It's very old, but I think it's showing how you can call the native dialog yourself from Qt, and then maybe you can add those checkboxes if you think the native API has that?

          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