Results 1 to 4 of 4

Thread: Native QFileDialog

  1. #1
    Join Date
    Apr 2009
    Posts
    8
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Native QFileDialog

    Hi,

    I'm trying to use xp native file dialog but I didn't find anything on it. I guess I'll have to use the functions in qfiledialog_win.cpp but how?

    That would be great if someone could explain me the proper way to use native dialogs.

    Thanks in advance,
    Boris

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Native QFileDialog

    Quote Originally Posted by bgougeon View Post
    I'm trying to use xp native file dialog but I didn't find anything on it. I guess I'll have to use the functions in qfiledialog_win.cpp but how?
    The docs are telling you, everything you want to know (QFileDialog):
    The easiest way to create a QFileDialog is to use the static functions. On Windows, these static functions will call the native Windows file dialog, and on Mac OS X these static function will call the native Mac OS X file dialog
    If you don't want to use native dialog you have to explicit suppress them with QFileDialog::DontUseNativeDialog.

  3. #3
    Join Date
    Apr 2009
    Posts
    8
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Native QFileDialog

    Thanks for your answer, but QFileDialog() apparently uses Native Dialogs on Xp and Mac as default, or It doesn't look like it does, since the UI and comportment look different.
    I checked and it does open a native file dialog.

    So what I'm looking for is to have the native xp FileDialog (exact same look). Do you have any idea if it's possible to do that?

    Thanks for your answer,
    Boris

  4. #4
    Join Date
    Apr 2009
    Posts
    8
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Native QFileDialog

    Ok I think I did find out that what I was searching for was not possible. I forgot to notice that what I wanted was for repertories. I checked how VLC did handle that and actually VLC uses the simple Windows file browser, with just repertories.

Similar Threads

  1. Native QFileDialog position under Win32
    By no_ghost in forum Qt Programming
    Replies: 0
    Last Post: 28th May 2009, 14:07
  2. Native QFileDialog block
    By Darktib in forum Qt Programming
    Replies: 9
    Last Post: 30th December 2008, 02:56
  3. Native QFileDialog
    By adonel in forum Qt Programming
    Replies: 1
    Last Post: 17th September 2008, 18:40
  4. QFileDialog in Qt designer
    By tpf80 in forum Qt Tools
    Replies: 1
    Last Post: 17th May 2007, 00:41
  5. QFileDialog Mac / PC
    By hey in forum Qt Programming
    Replies: 3
    Last Post: 26th April 2007, 18:23

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.