How change a Variable from another class
Unsolved
Language Bindings
-
Hi
I am kind of a newbee in Qt.
I have a Class a which has a Bool variable like
Class A:bool cont = false ;
now I want to change the variable to true in another class
Class B:Class_a temp; temp.cont = true;
but when I call the variable in class C it still give me "FALSE"
Class C:Class_a temp; qDebug() << temp.cont;
the code gives me "False" instead of TRUE
-
@Codmasters said in How change a Variable from another class:
the code gives me "False" instead of TRUE
This has nothing to do with Qt, first try to learn C++, there are many online trainings available.