03.01.2010 23:30, Loic Derrien пишет:
Hi
I would like to use Q_Tab_Widgets in my program. But when I want to use the
method Add_Tab, I have the next error :
No Selector Add_Tab for type Q_Tab_Widgets.
my code :
declare
tabwidg : TabWidg : access Qt4.Tab_Widgets.Q_Tab_Widget'Class;
Text_Edit2 : access Qt4.Text_Edits.Q_Text_Edit'Class;
begin
tabwidg := Qt4.Tab_Widgets.Constructors.Create;
tabwidg.Add_Tab (Text_Edit2, "default");
end
Sorry for the last message, I do an error.
Hello.
Add_Tab is a function, which returns a number of the added tab.
You can use it as follows:
declare
Tab_Id : Q_Integer;
tabwidg : TabWidg : access Qt4.Tab_Widgets.Q_Tab_Widget'Class;
Text_Edit2 : access Qt4.Text_Edits.Q_Text_Edit'Class;
begin
tabwidg := Qt4.Tab_Widgets.Constructors.Create;
Tab_Id := tabwidg.Add_Tab (Text_Edit2, "default");
end;
_______________________________________________
qtada-users mailing list
[email protected]
http://lists.qtada.com/mailman/listinfo/qtada-users_lists.qtada.com