can you please tell me the difference between the “point” and the “arrow”, for example :
file.open
and
->start() (with QThread)
i thought the arrow was used for “methods”, whereas the “point” is used for “attributes”, but open for example is a method.
thanks for your answer
It’s not just for Qt, the . is used when the variable in question is referencing the actual instance of the type/class.
Example:
The -> is used when the variable is a pointer that can hold the address of the type/class.
Example: