Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Syntax question : How to differenciate several meanings of the symbol & (ampersand) ?

$
0
0
I’m learning how to understand Qt documentation. And i understand the first parameter of the function addTab(), but don’t understand the second one : Here is the function: addTab ( QWidget * page, const QString & label ) I understand the first one : If you want to use the addTab() function, you have to put as first parameter a pointer which is type of QWidget.(in the syntax prototype above, the pointer’s name is page but you can give name it whatever you want). I don’t understand the second one: I’ve read that if the ampersand is before a letter, then it becomes a shortcut key combination. But i also know from my lessons that “&” means “the adress of…”, it is used to retrieve the path to a variable. So i’m quite confused, how to differenciate them ? How to know in which case which specific ampersand is used ? Thks in advance for any enligthenment or help :)

Viewing all articles
Browse latest Browse all 18427

Trending Articles