hi friends,
I amusing Qt Creature and I have two form ,this two form must use common variables that I must access these variables.I will get a value from outside in these vaariables in any form.I need like global values.
A global variable would work, but should be avoided. It is better to define your variable in main and pass the needed variable(s) to the functions that need them. If you need to change the value you could either return this new value to to the variable or pass the variable by reference, so that the change is seen in main.
Passing the variable(s) to a function will also help you figure out which function may be causing a problem.