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 select file while Browse in findFiles example without find file button?
Forum Updated to NodeBB v4.3 + New Features

How to select file while Browse in findFiles example without find file button?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.0k 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.
  • S Offline
    S Offline
    sabby
    wrote on last edited by
    #1

    In the findFiles demo of the QT while browsing we can only select the folders then we have to click find to see files.
    I want to directly select the files and get its path in the combobox without and find buttons.

    Can anyone help me?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sabby
      wrote on last edited by
      #2

      Well I have got a solution

      In place of QFileDialog::getExistingDirectory

      if you use QFileDialog::getOpenFileName, you can browse files and add them.

      But can we specify which kind of file we can allow? like .txt or .odt only ...

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goblincoding
        wrote on last edited by
        #3

        Do you know about Qt's awesome "API documentation":https://qt-project.org/doc/qt-4.8/qfiledialog.html#getOpenFileName ?

        http://www.goblincoding.com

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Macro
          wrote on last edited by
          #4

          [quote author="sabby" date="1356953150"]
          if you use QFileDialog::getOpenFileName, you can browse files and add them.[/quote]

          That's Right...!!! QFileDialog::getOpenFileName () can be used to return the Existing Files selected by the user...

          Thanks & Regards...

          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