qnamespace.h enum Key needs Key_None
Posted: Tue Sep 06 2022 9:44 pm
All,
The Key enum in qnamespace.h needs either a Key_None or Key_NULL with value 0x00000000.
It's an initialization thing. These things are all getting thumped into integers and C/C++ developers long ago made peace with no negative enums (well, some did) but without a Key_None or Key_NULL there is no safe initialization value. One has to initialize with a key that was never hit when using only enum values.
The Key enum in qnamespace.h needs either a Key_None or Key_NULL with value 0x00000000.
It's an initialization thing. These things are all getting thumped into integers and C/C++ developers long ago made peace with no negative enums (well, some did) but without a Key_None or Key_NULL there is no safe initialization value. One has to initialize with a key that was never hit when using only enum values.