voluntarily REMOVED Which way is correct ?
C / C++ / MFC
3
Posts
1
Posters
24
Views
1
Watching
-
1. This has nothing to do with templates. 2. If you change the word
pTEST
in the first example toactionList
, you will see that they are both exactly the same. Barring, of course the line:text += " match ";
which is not present in the second sample. And since the
findChildren
function returns a list ofQAction*
items, it matters not whether you specify it explicitly, or leave the compiler to infer it from the context.