brackets around m_qtCanvas->painter() are actually not required, however using them is also fine, since it is more of a coding style preference question