[solved]cmd/*cmd
-
-
what is the different between:
@
QPushButton cmd("ADD");
QPushButton *cmd = new QPushButton("ADD");
@ -
why in this line "*" is required :
@
QObject::connect(&*cmd, SIGNAL(clicked()),
@
but in this dont:
@
l->addWidget(cmd);
@P.S. after previewing post i pressed "ctrl+r" ,habitually (refresh page) hahaha
-
-
@QPushButton cmd("ADD"); //the resource is allocated on stack QPushButton *cmd = new QPushButton("ADD"); //the resource is allocated on heap@
you could use directly if cmd is a pointer, using "&*" is weird even it work
@QObject::connect(cmd, SIGNAL(clicked()),@Please pick a good book of C++--recommend c++ primer 5
if you are running out of time, try "essential c++" -
Hmm, basic C++ issue. Another good book is: Introduction to C++ with Qt. Gives perfect education of C++ while using the basics of Qt
-
btw, mark this topic as [SOLVED] in your title!
-
Hi!
I can recommend you:
"Язык программирования C++":http://www.ozon.ru/context/detail/id/2988768/
"Объектно-ориентированное программирование в C++":http://www.ozon.ru/context/detail/id/1313520/