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

QGuiApplication - reference in argc argument

$
0
0
QGuiApplication have this signature in constructor: QGuiApplication(int & argc, char ** argv) But, why it need? I had derived class from QGuiApplication with signature in constructor without reference: MyApplication(int  argc, char ** argv) : QGuiApplication(argc, argv) And of cource, starting at a certain point my app started to fall. I spent many time for fix this problem and now i have a question. Why it need? Integer type have equal or more than twice size than pointer, and using only once. But this reference can create similar errors, as i did.

Viewing all articles
Browse latest Browse all 18427

Trending Articles