Initialize member variables properly


Move the initialization of default values to class definitions
and use braced initialization instead. This way, whenever a new
constructor is added, the variables will be initialized to the
correct default value even if someone forgot to include it in the
init-list. Additionally, this fix undefined behaviours in some
member variables as they were never initialized with default values.

Bitfields were left out because NSDMI of bitfields require C++20

Fixes: QTBUG-145072
Pick-to: 6.12
Change-Id: Ibe559a96a25105db4f179a6459f915c3ee119f7f
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commitf37626a5b2cd688651eeb411c17a7451c5a44288
parent76f95fbec828a004eef122d863b690eac79ddada
authorHatem ElKharashy <hatem.elkharashy@qt.io>
committerHatem ElKharashy <hatem.elkharashy@qt.io>
commit timeTue, 13 Oct 2026 08:13:26 +0000