Solved QWidget *parent = nullptr ?
-
Should we be doing it this way? QWidget *parent = nullptr ? Or keep using '0' ?
-
-
@mrjj That's good enough for me!! Been wondering about that one for a while.
-
I say
Q_NULLPTR
so that it becomes nullptr if the copiler supports it, otherwise it reverts to the good old NULL (i.e. 0)