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. custom file dialog
Forum Updated to NodeBB v4.3 + New Features

custom file dialog

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 817 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.
  • H Offline
    H Offline
    haripriya
    wrote on last edited by
    #1

    I am trying to create a custom file dialog where I need to show only the allowd file types in the file dialog view . In windows , setting namefilter worked whereas in Mac OS , unsupported files are disabled. Is there a way that only allowed file types to be shown in view for Mac OS ?

    jsulmJ 1 Reply Last reply
    0
    • H haripriya

      I am trying to create a custom file dialog where I need to show only the allowd file types in the file dialog view . In windows , setting namefilter worked whereas in Mac OS , unsupported files are disabled. Is there a way that only allowed file types to be shown in view for Mac OS ?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @haripriya said in custom file dialog:

      setting namefilter

      What is this filter and where do you set it?
      You should be more specific.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • H Offline
        H Offline
        haripriya
        wrote on last edited by haripriya
        #3

        am trying to set the name filters like
        filedialog->setNameFilters(fileTypeFilters);

        Am setting this in the constructor of my custom file dialog derived from QFiledialog

        The unsupported files are displayed but in grey

        Screenshot 2020-06-24 at 4.14.09 PM.png

        jsulmJ 1 Reply Last reply
        0
        • H haripriya

          am trying to set the name filters like
          filedialog->setNameFilters(fileTypeFilters);

          Am setting this in the constructor of my custom file dialog derived from QFiledialog

          The unsupported files are displayed but in grey

          Screenshot 2020-06-24 at 4.14.09 PM.png

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @haripriya Not sure, can be that this is default behaviour on MacOS.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          J.HilkJ 1 Reply Last reply
          0
          • jsulmJ jsulm

            @haripriya Not sure, can be that this is default behaviour on MacOS.

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #5

            @jsulm it is the default behavior


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            H 1 Reply Last reply
            0
            • J.HilkJ J.Hilk

              @jsulm it is the default behavior

              H Offline
              H Offline
              haripriya
              wrote on last edited by
              #6

              @J-Hilk
              Okay got it.

              Is there a way I can restrict the select all operation to only the allowed files types as we observe in native file dialog ?
              Rather than including all the files ?

              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