Rework constructors of the API classes


Make the QObject constructor explicit and remove a default
nullptr value.

Add an implicit default constructor and use c-tor delegation
to call a QObject c-tor with nullptr.

This achieves two things:
- we allow brace-initialization for default constructors
- we forbid implicit constructors from QObject

Change-Id: I5eae3f973e75054da4a88567cfc7a473423e315d
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
commit0170ac36e83bd0ba11c6592a1c762c054a8aa221
parentc2d63ed19dc8ee51bfed10bce03a3b14300c756c
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeWed, 6 Aug 2025 09:33:21 +0200