Results 1 to 13 of 13

Thread: QFileDialog filter

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    Join Date
    Oct 2009
    Posts
    105
    Thanked 4 Times in 2 Posts
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: QFileDialog filter

    Quote Originally Posted by wirasto View Post
    Not work. Is something wrong with my code ?

    Qt Code:
    1. open.setFilter(QDir::Executable);
    2. QString fileName = open.getOpenFileName(this, tr("Open Binary File"), QDir::homePath());
    To copy to clipboard, switch view to plain text mode 
    Hi I'm also trying to do same kind of application. like openig a file dialog which should show only executable. But unfortunatly filter is not working. I did same way as above. Can any body tell how to solve it.
    I'm doing it in Linux.

    Thank you all.
    Last edited by sudhansu; 20th January 2010 at 07:09.

Similar Threads

  1. QFileDialog - will be closed after selecting a file
    By skyperhh in forum Qt Programming
    Replies: 1
    Last Post: 18th October 2009, 16:49
  2. QFileDialog and file sequences
    By peterhillman in forum Qt Programming
    Replies: 5
    Last Post: 24th November 2007, 10:16
  3. QFileDialog in Qt designer
    By tpf80 in forum Qt Tools
    Replies: 1
    Last Post: 17th May 2007, 00:41
  4. QFileDialog Mac / PC
    By hey in forum Qt Programming
    Replies: 3
    Last Post: 26th April 2007, 18:23
  5. Replies: 9
    Last Post: 5th March 2006, 03:31

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.