[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: I can use KFileDialog to select file,then how about dir?
From:       David Faure <faure () kde ! org>
Date:       2007-05-18 11:39:26
Message-ID: 200705181339.27204.faure () kde ! org
[Download RAW message or body]

On Wednesday 16 May 2007, k.blammo wrote:
> On Tuesday 15 May 2007 14:25, Andreas Pakulat wrote:
> > On 15.05.07 20:01:47, jiang jefix wrote:
> > > Hi,
> > > I can use KFileDialog to get the user select file
> > > How can i get the user select dir ( like konqueror's Which Dir to Save
> > > )? Is there any KDirDialog?
> > 
> 
> Perhaps you are looking for KDirSelectDialog:  
> http://api.kde.org/3.5-api/kdelibs-apidocs/kio/kfile/html/classKDirSelectDialog.html
> 

That's the internal implementation of KFileDialog::getExistingDirectory() or \
getExistingDirectoryUrl(),  which you probably want to use instead.

Direct use of KDirSelectDialog requires linking to another lib (libkfile), which \
itself depends on qt3support etc.

-- 
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
 
> > Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic