|
|
On Tue, Jul 22, 2008 at 5:20 PM, Mike Adolf <mlnx@xxxxxxx> wrote:
> Kaleb Pederson wrote:
>>
>> On Tue, Jul 22, 2008 at 4:06 PM, Mike Adolf <mlnx@xxxxxxx> wrote:
>>
>>>
>>> I should have noticed that. I changed it to a pointer but still get an
>>> error.
>>>
>>> error: no matching function for call to 'MyQDialog::connect(SaxHandler*&,
>>> const char [31], 'MyQDialog* const, const char [29])'
>>>
>>> "SaxHandler*&" doesn't look right.
>>>
>>>
>>> I put "SaxHandler *handler;" into myQDialog.h. (Also, I don't understand
>>> the
>>> meaning of "const char [31]/[29]", the prototype for connect says it
>>> should
>>> be "const char*" )
>>>
>>
>> Your handler class doesn't derive from QObject so it's not a valid
>> argument for connect.
[snip]
> Not sure what you are telling me. SaxHandler inherits QXmlDefaultHandler()
> which inherits QObject.
That's not what the documentation says. See the "List of all members,
including inherited members" link in the documentation, which gives
you the following indicating that it's not:
http://doc.trolltech.com/4.4/qxmldefaulthandler-members.html
--Kaleb
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
|
|