[solved]cmd/*cmd
-
wrote on 20 May 2013, 16:59 last edited by
-
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
-
-
wrote on 20 May 2013, 17:15 last edited by
@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++" -
wrote on 20 May 2013, 17:18 last edited by
Hmm, basic C++ issue. Another good book is: Introduction to C++ with Qt. Gives perfect education of C++ while using the basics of Qt
-
wrote on 20 May 2013, 17:18 last edited by
btw, mark this topic as [SOLVED] in your title!
-
wrote on 20 May 2013, 17:24 last edited by
ty all
(im rly running out of time and have bad c++ knowledge, trying to learn Qt and C++ at the same time)
but the main problem in choosen book: i have bad english (russian) , so i need good rus book -
wrote on 21 May 2013, 09:18 last edited by
Hi!
I can recommend you:
"Язык программирования C++":http://www.ozon.ru/context/detail/id/2988768/
"Объектно-ориентированное программирование в C++":http://www.ozon.ru/context/detail/id/1313520/
1/6