Do the parentheses after the type name make a difference with new?
How it's different in C++11?
And suppose we use initializer list, then how it's different?
TestWidget::TestWidget(): QWidget(parent)
, m_BoxWidget(new BoxWidget())
{
}
vs
TestWidget::TestWidget(): QWidget(parent)
, m_BoxWidget(new BoxWidget)
{
}
My BoxWidget class has constructor defined by me where I initialize the box's coordinates.