You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

tiziano

Unregistered

1

Monday, May 2nd 2005, 3:19pm

KDirSelectDialog error

Hi, i'm trying to use KDirSelectDialog in place of QFileDialog.

This works

QString s = QFileDialog::getExistingDirectory("/",this,"Select directory", "Select directory",TRUE );

This don't work;why?

KURL path = KDirSelectDialog::selectDirectory("openDir", false, 0, "Open Directory");

The error is:
undefined reference to `KDirSelectDialog::selectDirectory(QString const&, bool, QWidget*, QString const&)'

Thanks.

Everall

Beginner

Posts: 6

Location: Bruges in Belgium

  • Send private message

2

Monday, May 2nd 2005, 3:35pm

RE: KDirSelectDialog error

Hello tiziano,

Be sure that -lkdecore and -lkio are added to your library list.
Debian/GNU Linux user

tiziano

Unregistered

3

Monday, May 2nd 2005, 4:01pm

that's the problem; now it works; thanks.