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

List:       kde-devel
Subject:    Re: qt4 and the KIO::CopyJob Class
From:       "Andreas Gfrei" <gfrei.andreas () gmx ! net>
Date:       2005-12-31 10:15:49
Message-ID: 32029.1136024149 () www25 ! gmx ! net
[Download RAW message or body]

I have tried a little bit, but i'm not able to get it work. I'm not very
familiar with linking. Probably there is a way to link it dynamically, but i
don't know how to do, sorry.

My .pro file is this:

TEMPLATE = app
TARGET +=
DEPENDPATH += . src
INCLUDEPATH += . src
QT += xml
QT += svg
QT += opengl
QT += qt3support
CONFIG += uitools thread
unix:LIBS += -L/opt/kde3/lib -L/usr/lib/qt3
INCLUDEPATH += /opt/kde3/include /opt/kde3/include/kio /usr/lib/qt3/include

And the errors are like this:

/usr/lib/qt3/include/qptrcollection.h:49: error: invalid function
declaration
/usr/lib/qt3/include/qglist.h:45: error: invalid function declaration
/usr/lib/qt3/include/qglist.h:61: error: invalid function declaration
/usr/lib/qt3/include/qglist.h:150: error: invalid use of undefined type
&#8216;struct QGList&#8217;
/usr/lib/qt3/include/qptrcollection.h:45: error: forward declaration of
&#8216;struct QGList&#8217;
/usr/lib/qt3/include/qglist.h: In member function &#8216;uint
QGList::count() const&#8217;:
/usr/lib/qt3/include/qglist.h:152: error: &#8216;numNodes&#8217; was not
declared in this scope
/usr/lib/qt3/include/qglist.h: At global scope:
/usr/lib/qt3/include/qglist.h:155: error: invalid use of undefined type
&#8216;struct QGList&#8217;
/usr/lib/qt3/include/qptrcollection.h:45: error: forward declaration of
&#8216;struct QGList&#8217;
/usr/lib/qt3/include/qglist.h: In member function &#8216;bool
QGList::removeFirst()&#8217;:
/usr/lib/qt3/include/qglist.h:157: error: &#8216;first&#8217; was not
declared in this scope
/usr/include/stdio.h:154: error: too few arguments to function &#8216;int
remove(const char*)&#8217;
/usr/lib/qt3/
.......

this is oviously a problem qt4 has with qt3




> --- Ursprüngliche Nachricht ---
> Von: David Faure <faure@kde.org>
> An: kde-devel@kde.org
> Betreff: Re: qt4 and the KIO::CopyJob Class
> Datum: Fri, 30 Dec 2005 15:05:40 +0100
> 
> On Thursday 29 December 2005 14:32, Thiago Macieira wrote:
> > Andreas Gfrei wrote:
> > >Hello,
> > >i am working on a little qt4 program and now i would like to use the
> > > nice KIO::CopyJob Class to enable copying and moving files, but i am
> > > not able to compile it correctly. (I have never before done something
> > > with KDE so please excuse my ignorance) Is it possible to use
> > > KIO::CopyJob with a qt4 program?
> > 
> > The KIO framework from trunk/KDE/kdelibs/kio is not ready for public 
> > consumption. You can ask again in 10 months.
> 
> OTOH, it should work [even though parts of the API will change indeed,
> e.g. kapplication].
> 
> But I think Andreas is forgetting that if he wants to use CopyJob
> he needs to link to libkio, and probably to create a KApplication?
> Without a more precise description of the error it's hard to tell, anyway.
> 
> -- 
> 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 <<
> 

-- 
DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert:
GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl
 
>> 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