[Gambas-user] Gambas-user Digest, Vol 15, Issue 32
Benoit Minisini
gambas at ...1...
Thu Aug 30 01:42:03 CEST 2007
On jeudi 30 août 2007, Harvey, Lewis (Contractor) wrote:
> OK with what you stated below is there a way to create a property
> (containing text/str) in Gambas for an existing object that will be
> created in the Qt widget and the value will be passed?
>
> Thanks
> Lewis Harvey
>
Not really, but you can patch the source code for that:
In the latest revision, modify the ./trunk/gb.qt/src/CWidget.cpp file by
inserting the following code at line 236.
WIDGET->setName(THIS->name);
Then recompile. Now Qt widget names will be set to the Gambas Name property
value automatically at initialization. But be careful, changing the name
property at run-time won't work.
Regards,
--
Benoit Minisini
More information about the User
mailing list