Results 1 to 2 of 2

Thread: Native QFileDialog

  1. #1
    Join Date
    Sep 2007
    Posts
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Native QFileDialog

    Hi,
    I want to display a native file dialog, but i don't want to use the static functions of QFileDialog,
    because i need to explicitly set the selected filter each time.

    Is there an easy way to do that? By default, the Qt-styled file dialog is displayed!

    Regards,
    Panos

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Native QFileDialog

    The only way to use native file dialogs is to use those static methods. What they actually do is that they create a native dialog (ie. not QFileDialog) by using platform-specific APIs where available. Plain QFileDialog is used elsewhere. QFileDialog is a cross-platform file dialog implementation. If you create a QFileDialog, there is no way to turn it as a native file dialog.
    J-P Nurmi

Similar Threads

  1. why QFileDialog does not display the default winxp dialog?
    By mismael85 in forum Qt Programming
    Replies: 5
    Last Post: 21st March 2008, 14:39
  2. QFileDialog and file sequences
    By peterhillman in forum Qt Programming
    Replies: 5
    Last Post: 24th November 2007, 11:16
  3. QFileDialog in Qt designer
    By tpf80 in forum Qt Tools
    Replies: 1
    Last Post: 17th May 2007, 01:41
  4. QFileDialog Mac / PC
    By hey in forum Qt Programming
    Replies: 3
    Last Post: 26th April 2007, 19:23
  5. copy file/s from QFileDialog
    By raphaelf in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 15:26

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.