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

List:       kde-devel
Subject:    Re: Filters in KFileDialog
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2008-06-03 22:33:30
Message-ID: 20080603223330.GB7125 () morpheus ! apaku ! dnsalias ! org
[Download RAW message or body]

On 03.06.08 14:13:10, Ben Boeckel wrote:
> On Tuesday 03 June 2008 21:21:15 Friedrich W. H. Kossebau wrote:
> > Am Dienstag, 3. Juni 2008, um 18:56 Uhr, schrieb Ben Boeckel:
> > > I currently am using the following (non-working, commented out) code in
> > > my project:
> > >
> > > connect(findChild<KDirOperator*>(), SIGNAL(dirActivated(const
> > > KFileItem&)), this, SLOT(sizeFilter(const FileItem&)));
> > >
> > > It fails to compile at the linking stage (KDirOperator not having a
> > > staticMetaObject). Is there a way to make this possible?
> > If at link time:
> > You forgot to add ${KDE4_KFILE_LIBS} to target_link_libraries()?
> 
> I'm using qmake, but the class that has the code in it already inherits 
> KFileDialog, so I don't think that would be it.

KFileDialog is not in libkfile.so but in libkio.so, so you have to add
-lkfile as well to your list of link flags as KDirOperator is in that
library. 

> The exact error is:
> 
> FileDialog.cpp:
> (.text._Z10qFindChildIP12KDirOperatorET_PK7QObjectRK7QString[KDirOperator* 
> qFindChild<KDirOperator*>(QObject const*, QString const&)]+0x19): undefined 
> reference to `KDirOperator::staticMetaObject'

And whats the exact gcc command thats executed?

Andreas

-- 
You will meet an important person who will help you advance professionally.
 
>> 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