Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Solved] Basic question, what’s the difference between the . and the :: and the ->
thistleknot last edited by
This is what I believe they mean.
and the ::
is a way to access another object's function.
I see - > used in QT a lot. It appears to work in a similar manner, but I see it primarily used with ui->
thiberi0 last edited by
"." is used to access a object member
"::" is used to access a class member( when a instance of class isn't necessary)
"->" is used to access a dereference a pointer to something = "(* .)"
Maybe this will help: