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

QFileDialog::getOpenFileName Filter String

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 3.4k 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.
  • E Offline
    E Offline
    exiled
    wrote on last edited by
    #1

    I am using the static native open window function call, I am setting the filter string "All formats (*.a *.b etc..)" but it is too long to fit on the screen. I have 50 some extensions so I was wondering if there is a way to have a "All format" selection without having to have all the extensions in it.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      favoritas37
      wrote on last edited by
      #2

      You could always use the classic star () .
      So you would have something like this:
      @
      dialog.setNameFilter(tr("All formats (
      )"));
      @

      1 Reply Last reply
      0
      • E Offline
        E Offline
        exiled
        wrote on last edited by
        #3

        I don't mean have every extension possible, I only want all of "my" formats where. That's the same thing as doing
        @All Files (.)@
        , which I don't want (I wouldn't even need a filter in this case).

        1 Reply Last reply
        0
        • F Offline
          F Offline
          favoritas37
          wrote on last edited by
          #4

          Ok then i would suppose you need:
          @
          dialog.setNameFilterDetailsVisible ( false );
          @

          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