Results 1 to 4 of 4

Thread: Howto get QFileDialog native on KDE4?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2006
    Location
    The Netherlands
    Posts
    64
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Howto get QFileDialog native on KDE4?

    Hello,

    I use the static function of QFileDialog getOpenFileName() in order to get the native filedialogs.
    This works with windows XP and with Ubuntu & Gnome.
    The problem is that is does not work on openSUSE & KDE4.
    On KDE4 I get the nonnative Qt QFileDialog.

    What do I have to do to get the native KDE4 filedialog?

  2. #2
    Join Date
    Mar 2008
    Location
    Houston, Texas, USA
    Posts
    277
    Thanks
    9
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: Howto get QFileDialog native on KDE4?

    What you can do is get QLibrary and load the kdeui or kdekio library of it and do it that way.
    Qt-4.7.3 | Gentoo ~amd64 | KDE-4.7
    Aki IRC Client for KDE4 | Qt Documentation

  3. #3
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Howto get QFileDialog native on KDE4?

    Note that you can't just use QLibrary with C++ libraries.

    When not using the static functions, you can set the use of native dialogs in QFileDialog. It might be worth experimenting with that.

  4. #4
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Howto get QFileDialog native on KDE4?

    Actually, that isn't true (at least it wasn't in 4.6.3). The native dialogs will only be opened when using the static functions. The native dialogs flag is for the static functions (convenience probably). Even when using native dialogs the whole event loop within an event loop issue can be present. Nasty stuff...
    Last edited by franz; 15th November 2010 at 16:34. Reason: updated contents
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

Similar Threads

  1. extending native-style QFileDialog
    By tangens in forum Qt Programming
    Replies: 1
    Last Post: 19th February 2010, 12:16
  2. Slow non-native QFileDialog
    By wssddc in forum Newbie
    Replies: 1
    Last Post: 26th November 2009, 21:26
  3. Native QFileDialog
    By bgougeon in forum Qt Programming
    Replies: 3
    Last Post: 6th June 2009, 02:33
  4. Native QFileDialog block
    By Darktib in forum Qt Programming
    Replies: 9
    Last Post: 30th December 2008, 03:56
  5. Native QFileDialog
    By adonel in forum Qt Programming
    Replies: 1
    Last Post: 17th September 2008, 19:40

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.