Discussion:
"QObject.connect: No such argument type" error
Olivier Dragon
2004-12-03 23:03:13 UTC
Permalink
Hi,

I'm trying to write a QT/KDE app in Java and I'm running into an error
which I cannot figure out. I wrote a little test program and it appears
that objects from classes in a different package than the current one
cannot be connect()ed to from this current class. But it seems to work
for standard java objects as well as QT objects.

For example, lets say I have the following files:
SignalSlotTest.java
datastruct/TestQObject.java

I've attached the files to this email. When I run SignalSlotTest I get
this error: QObject.connect: No such argument type: TestQObject

I'm running this from Eclipse using these version of java:
java version "1.4.2-rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-rc1)
Java HotSpot(TM) Client VM (build Blackdown-1.4.2-rc1, mixed mode)

I would greatly appreciate any help on this.

Thank you,
-Olivier
--
__-/| ? ? |\-__
__--/ / \ (^^) / \ \--__
_-/ / / /\ / ( ) /\ \ \ \-_
/ / / / / ( ^^ ~ \ \ \ \ \
/ Oli Dragon ( ***@mcmaster.ca \
/ B.Eng. Sfwr ( ) \ \ \ \
/ / / /__--_ ( ) __--__\ \ \ \
| / / _/ \_ \_ \_ \ \ |
\/ / _/ \_ \_ \_ \ \/
\_/ / -\_\ \ \_/
\/ ) \/
*~
___--<***************>--___
[http://dragon.homelinux.org]
~~~--<***************>--~~~
Olivier Dragon
2004-12-03 23:38:39 UTC
Permalink
Classic :)

Here are the files...
--
__-/| ? ? |\-__
__--/ / \ (^^) / \ \--__
_-/ / / /\ / ( ) /\ \ \ \-_
/ / / / / ( ^^ ~ \ \ \ \ \
/ Oli Dragon ( ***@mcmaster.ca \
/ B.Eng. Sfwr ( ) \ \ \ \
/ / / /__--_ ( ) __--__\ \ \ \
| / / _/ \_ \_ \_ \ \ |
\/ / _/ \_ \_ \_ \ \/
\_/ / -\_\ \ \_/
\/ ) \/
*~
___--<***************>--___
[http://dragon.homelinux.org]
~~~--<***************>--~~~
Olivier Dragon
2004-12-05 16:41:13 UTC
Permalink
Post by Olivier Dragon
SignalSlotTest.java
datastruct/TestQObject.java
I've attached the files to this email. When I run SignalSlotTest I get
this error: QObject.connect: No such argument type: TestQObject
Turns out I was wrong. I get no error only if both SignalSlotTest.java
and TestQObject.java are in the *default* package. If I have
SignalSlotTest in the default package and TestQObject in another package
I get the error above. If I have

datastruct/SignalSlotTest.java
datastruct/TestQObject.java

or

someotherpackage/SignalSlotTest.java
datastruct/TestQObject.java

I get 2 errors:
QObject.connect: No such argument type: SignalSlotTest
QObject.connect: No such argument type: TestQObject

I really appreciate any help I can get on this.

Thank you.
-Olivier
--
__-/| ? ? |\-__
__--/ / \ (^^) / \ \--__
_-/ / / /\ / ( ) /\ \ \ \-_
/ / / / / ( ^^ ~ \ \ \ \ \
/ Oli Dragon ( ***@mcmaster.ca \
/ B.Eng. Sfwr ( ) \ \ \ \
/ / / /__--_ ( ) __--__\ \ \ \
| / / _/ \_ \_ \_ \ \ |
\/ / _/ \_ \_ \_ \ \/
\_/ / -\_\ \ \_/
\/ ) \/
*~
___--<***************>--___
[http://dragon.homelinux.org]
~~~--<***************>--~~~
Loading...