Following on using qtada-gpl-3.2.0-20111213-3862,
I still can't access the Cancel button, presumably something wrong with my code:

    Button_Box             : Qt4.Dialog_Button_Boxes.Q_Dialog_Button_Box_Access;
    Cancel_Button       : Qt4.Push_Buttons.Q_Push_Button_Access;
-
-
-
      Button_Box := Interactor.Button_Box;
      Cancel_Button := Button_Box.Button(Cancel);

The above fails to compile with message:
no selector "Button" for type "Q_Dialog_Button_Box'Class"
The gps code completion tip certainly offers "button" as a selector and 
qt4-dialog_button-boxes.ads certainly includes the function "Button" which 
returns "access Qt4.Push_Buttons.Q_Push_Button'Class".
I have found that the gps "no selector"  error is often  misleading as the 
error often occurs for some sort of declaration error; but in this case I can't 
figure it out.
Very grateful for any help,
Regards,
Roger


On 15/12/2011, at 6:00 AM, [email protected] wrote:

> On 14/12/2011, at 3:16 AM, Vadim Godunko wrote:
> 
>> On 12/13/2011 07:00 PM, Vadim Godunko wrote:
>>> On 12/08/2011 06:50 AM, Roger Mc Murtrie wrote:
>>>> I have set up a dialog that includes a button_box but I cannot figure
>>>> out how to access the buttons. Qt has a method button_box.buttons
>>>> that returns a list of buttons in the button_box but this does not
>>>> appear to have been implemented ing QtAda?
>>>> 
>>> May be QObject.findChild can help here?
>>> 
>>> I've fill extension request for buttons and button functions.
>> 
>> button, buttonRole and standardButton functions of QDialogButtonBox are 
>> supported now, you can download latest version of QtAda from site:
>> 
>> http://download.qtada.com/qtada-gpl-3.2.0-20111213-3862.tar.gz
> 


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

Reply via email to