606 views
in GUI Development by
Hi ,

     How to create global function

  i have application and one class name is test.how to access the test class functions

  Application::test.?

i am not able to call function

1 Answer

0 votes
by

Hello Ramesh,

functions (methods) are usable in context of an object only. To have a kind of global method you add an autoobject of your Application::test class to your project. Then you call the method in context of the autoobject as demonstrated in the section Use the autoobject. The autoobject serves as a global instance of your Application::test class in such case.

Best regards

Paul Banach

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...