PDA

View Full Version : Qt namespace flags: hexadecimal versus decimal



neuronet
13th October 2014, 03:11
If you look at the Qt namespace:
http://qt-project.org/doc/qt-4.8/qt.html#details

Some flag enumerations depict the flags as hexadecimals (e.g., dropActions), while others are represented in decimal notation (e.g., itemFlags). Is this a substantive difference, or an arbitrary difference in convention of how they are enumerated?

I work in PyQt/PySide and it seems there is no difference.

wysota
13th October 2014, 05:49
There is no difference.

ChrisW67
13th October 2014, 12:32
The enums given as hexadecimal are typically intended to be used as flags in combination and the hex representation makes the bits involved more obvious. Ultimately though a number is just a number.