I am trying out the examples for using a "ui" file created in QtDesigner.
The UI loads fine using the examle in ui_dialog and in the package I am
creating based on it.
However, I am puzzled by the documentation for the loader regarding the
Find_Child procedure:
Creating form can contain child widgets. To operate with these widgets in
your
program you can use primitive operation Find_Child, accepting name of
required
widget as an argument of Q_String type. This name must be the same with the
objectName property in designers Proprety Editor.
Self.Formal_Messages_Combo_Box := Qt4.Combo_Boxes.Q_Combo_Box'Class
(Self.Formal_Messages_Edit_Widget.Find_Child
(Qt4.Strings.To_Q_String ("Formal_Messages_Combo_Box")).all)'Access;
Self.Message_Kind_Line_Edit := Qt4.Line_Edits.Q_Line_Edit'Class
(Self.Formal_Messages_Edit_Widget.Find_Child
(Qt4.Strings.To_Q_String ("Message_Kind_Line_Edit")).all)'Access;
I don't understand the context of the examples. Should the 'Find_Child' be
looking at the main (outer) widget declared in the UI and loaded by the
Load procedure?
Is there a good example showing the use of Find_Child from a UI file?
Julianne
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://box347.bluehost.com/pipermail/qtada-users_lists.qtada.com/attachments/20100818/ff1986be/attachment.html>
_______________________________________________
qtada-users mailing list
qtada-us...@box347.bluehost.com
http://box347.bluehost.com/mailman/listinfo/qtada-users_lists.qtada.com