[Qt-interest] emit custom built objects in signal/slot
Tommy Nordgren
tommy.nordgren at comhem.se
Tue Sep 15 16:05:54 CEST 2009
On Sep 15, 2009, at 3:05 PM, Sean Harmer wrote:
> Hi,
>
> On Tuesday 15 Sep 2009 13:51:49 Deepak Angeshwar wrote:
>> All,
>>
>> While using QTJambi I was able to pass only primitive-data-types or a
>> java.lang.Object
>> as the argument while emitting a value via the signal
>>
>> Now I am evaluating QT 4.5 (using C++), is there a way to emit user
>> defined
>> C++ object?
>>
>> If I try to extend a QObject in my C++ class and emit an object of
>> that
>> class, I get the follwoing error.
>> error: `QObject::QObject(const QObject&)' is private
This error message indicates that you pass the object by value.
You need to pass a pointer or reference.
> Can you post a small example that reproduces this please. This will
> make it
> much easier for us to help you.
>
> Sean
>
----------------------------------
Skinheads are so tired of immigration, that they are going to move to
a country that don't accept immigrants!
Tommy Nordgren
tommy.nordgren at comhem.se
More information about the Qt-interest-old
mailing list