Vadim Godunko <[email protected]> writes:

> On 04/24/2010 07:21 PM, Stephen Leake wrote:
>> 
>>       Button := Qt4.Push_Buttons.Constructors.Create (+"Delete", Widget);
>> 
>>       Self.Actions.Delete := Create (+"&Delete", Self);
>> 
>>       Connect
>>         (Self.Actions.Delete, 
>>          Qt4.Signal ("clicked()"), Self, Qt4.Slot ("delete()"));
>> 
>> As far as I can tell, this is similar to the tutorials that use buttons,
>> and assistant-qt4 says there is a "clicked" signal for pushButton.
>> 
>> But at runtime, this gives an error:
>> 
>> Object::connect: No such signal QAction::clicked()
>> 
>> What am I doing wrong?
>> 
> Most probably Self.Actions.Delete is instance of QAction, not
> QPushButton (you assign reference of created button to Button variable).

Yes, that was it; I was confusing two examples.

I miss strong typing!

-- 
-- Stephe

_______________________________________________
qtada-users mailing list
[email protected]
http://box347.bluehost.com/mailman/listinfo/qtada-users_lists.qtada.com

Reply via email to