PDA

View Full Version : How can I share a same variable in different cpp files in Qt creator...??



Samir Shah
24th April 2015, 20:36
How can I share a same variable in different cpp files in Qt creator...??

wysota
24th April 2015, 20:39
How can I share a same variable in different cpp files in Qt creator...??

Exactly the same way you do it in C++ using any other text editor, e.g. using references, pointers or global variables.

Samir Shah
25th April 2015, 06:22
Thanks for the answering.
Can you explain it with a little bit examples..

wysota
25th April 2015, 09:09
Thanks for the answering.
Can you explain it with a little bit examples..

This is not C++ kindergarden. How do you intend to implement anything if you don't even know how the programming langauge you are using?